use tree_sitter::Language;
extern "C" {
fn tree_sitter_c_sharp() -> Language;
}
pub fn language() -> Language {
unsafe { tree_sitter_c_sharp() }
}
pub const GRAMMAR: &'static str = include_str!("../languages/tree-sitter-c-sharp/grammar.js");
pub const NODE_TYPES: &'static str = include_str!("../languages/tree-sitter-c-sharp/src/node-types.json");
pub const TAGGING_QUERY: &'static str = include_str!("../languages/tree-sitter-c-sharp/queries/tags.scm");
pub const HIGHLIGHT_QUERY: &'static str = include_str!("../languages/tree-sitter-c-sharp/queries/highlights.scm");
#[cfg(test)]
mod tests {
#[test]
fn can_load_grammar() {
let mut parser = tree_sitter::Parser::new();
parser
.set_language(super::language())
.expect("Error loading C# grammar");
}
}