File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ build = "bindings/rust/build.rs"
17
17
include = [
18
18
" bindings/rust/*" ,
19
19
" grammar.js" ,
20
+ " queries/*" ,
20
21
" src/*" ,
21
22
]
22
23
Original file line number Diff line number Diff line change @@ -46,11 +46,26 @@ pub fn language() -> Language {
46
46
/// The source of the JavaScript tree-sitter grammar description.
47
47
pub const GRAMMAR : & ' static str = include_str ! ( "../../grammar.js" ) ;
48
48
49
+ /// The syntax highlighting queries for this language.
50
+ pub const HIGHLIGHT_QUERIES : & ' static str = include_str ! ( "../../queries/highlights.scm" ) ;
51
+
52
+ /// The syntax highlighting queries for languages injected into this one.
53
+ pub const INJECTION_QUERIES : & ' static str = include_str ! ( "../../queries/injections.scm" ) ;
54
+
55
+ /// The syntax highlighting queries for JSX.
56
+ pub const JSX_HIGHLIGHT_QUERIES : & ' static str = include_str ! ( "../../queries/highlights-jsx.scm" ) ;
57
+
58
+ /// The local-variable syntax highlighting queries for this language.
59
+ pub const LOCALS_QUERIES : & ' static str = include_str ! ( "../../queries/locals.scm" ) ;
60
+
49
61
/// The content of the [`node-types.json`][] file for this grammar.
50
62
///
51
63
/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types
52
64
pub const NODE_TYPES : & ' static str = include_str ! ( "../../src/node-types.json" ) ;
53
65
66
+ /// The symbol tagging queries for this language.
67
+ pub const TAGGING_QUERIES : & ' static str = include_str ! ( "../../queries/tags.scm" ) ;
68
+
54
69
#[ cfg( test) ]
55
70
mod tests {
56
71
#[ test]
You can’t perform that action at this time.
0 commit comments