mirror of
https://github.com/pnx/tree-sitter-dotenv
synced 2026-06-16 01:54:56 +02:00
bindings: rust: include scanner and highlights queries.
This commit is contained in:
parent
0c2b73e65d
commit
5cc2cc1b89
2 changed files with 1 additions and 4 deletions
3
bindings/rust/build.rs
generated
3
bindings/rust/build.rs
generated
|
|
@ -11,12 +11,9 @@ fn main() {
|
||||||
c_config.file(&parser_path);
|
c_config.file(&parser_path);
|
||||||
println!("cargo:rerun-if-changed={}", parser_path.to_str().unwrap());
|
println!("cargo:rerun-if-changed={}", parser_path.to_str().unwrap());
|
||||||
|
|
||||||
// NOTE: if your language uses an external scanner, uncomment this block:
|
|
||||||
/*
|
|
||||||
let scanner_path = src_dir.join("scanner.c");
|
let scanner_path = src_dir.join("scanner.c");
|
||||||
c_config.file(&scanner_path);
|
c_config.file(&scanner_path);
|
||||||
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
|
||||||
*/
|
|
||||||
|
|
||||||
c_config.compile("tree-sitter-dotenv");
|
c_config.compile("tree-sitter-dotenv");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
bindings/rust/lib.rs
generated
2
bindings/rust/lib.rs
generated
|
|
@ -36,7 +36,7 @@ pub const NODE_TYPES: &str = include_str!("../../src/node-types.json");
|
||||||
|
|
||||||
// NOTE: uncomment these to include any queries that this grammar contains:
|
// NOTE: uncomment these to include any queries that this grammar contains:
|
||||||
|
|
||||||
// pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/highlights.scm");
|
pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/highlights.scm");
|
||||||
// pub const INJECTIONS_QUERY: &str = include_str!("../../queries/injections.scm");
|
// pub const INJECTIONS_QUERY: &str = include_str!("../../queries/injections.scm");
|
||||||
// pub const LOCALS_QUERY: &str = include_str!("../../queries/locals.scm");
|
// pub const LOCALS_QUERY: &str = include_str!("../../queries/locals.scm");
|
||||||
// pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm");
|
// pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue