Fix name in rust bindings
//! ```
//! let code = "";
//! let mut parser = tree_sitter::Parser::new();
-//! parser.set_language(tree_sitter_SQL::language()).expect("Error loading SQL grammar");
+//! parser.set_language(tree_sitter_sql::language()).expect("Error loading SQL grammar");
//! let tree = parser.parse(code, None).unwrap();
//! ```
//!
use tree_sitter::Language;
extern "C" {
- fn tree_sitter_SQL() -> Language;
+ fn tree_sitter_sql() -> Language;
}
/// Get the tree-sitter [Language][] for this grammar.
///
/// [Language]: https://docs.rs/tree-sitter/*/tree_sitter/struct.Language.html
pub fn language() -> Language {
- unsafe { tree_sitter_SQL() }
+ unsafe { tree_sitter_sql() }
}
/// The content of the [`node-types.json`][] file for this grammar.
