Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
HIGHLIGHT_QUERY in rust bindings for the library only contains content of file queries/highlights.scm, but not the highlights query of tree-sitter-c library which it extends. Therefore only C++-specific parts of code are highlighted when using the parser through rust bindings.
Steps To Reproduce/Bad Parse Tree
Not sure what kind of reproducibility is needed here, but a simple program like this:
fn main() {
println!("{}", tree_sitter_cpp::HIGHLIGHT_QUERY);
}
Shows that the variable is wrong
Expected Behavior/Parse Tree
The HIGHLIGHT_QUERY variable should contain concatenated highlight queries from tree-sitter-c parser and queries/highlights.scm file
Repro
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version)No response
Describe the bug
HIGHLIGHT_QUERYin rust bindings for the library only contains content of filequeries/highlights.scm, but not the highlights query oftree-sitter-clibrary which it extends. Therefore only C++-specific parts of code are highlighted when using the parser through rust bindings.Steps To Reproduce/Bad Parse Tree
Not sure what kind of reproducibility is needed here, but a simple program like this:
Shows that the variable is wrong
Expected Behavior/Parse Tree
The
HIGHLIGHT_QUERYvariable should contain concatenated highlight queries fromtree-sitter-cparser andqueries/highlights.scmfileRepro