diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index 520fcc9..615eb42 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -11,12 +11,9 @@ fn main() { c_config.file(&parser_path); 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"); c_config.file(&scanner_path); println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap()); - */ c_config.compile("tree-sitter-dotenv"); } diff --git a/bindings/rust/lib.rs b/bindings/rust/lib.rs index e3e6c58..a087ed7 100644 --- a/bindings/rust/lib.rs +++ b/bindings/rust/lib.rs @@ -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: -// 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 LOCALS_QUERY: &str = include_str!("../../queries/locals.scm"); // pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm");