Skip to content

Commit

Permalink
fix(scanner): simplify string logic
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed May 10, 2024
1 parent 5910ee2 commit 8cd508b
Show file tree
Hide file tree
Showing 7 changed files with 794 additions and 760 deletions.
5 changes: 4 additions & 1 deletion bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ fn main() {
println!("cargo:rerun-if-changed={}", path.to_str().unwrap());
}

println!("cargo:rerun-if-changed={}", common_dir.join("scanner.h").to_str().unwrap());
println!(
"cargo:rerun-if-changed={}",
common_dir.join("scanner.h").to_str().unwrap()
);

config.compile("tree-sitter-xml");
}
1 change: 0 additions & 1 deletion bindings/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pub const XML_NODE_TYPES: &str = include_str!("../../xml/src/node-types.json");
/// [`node-types.json`]: https://tree-sitter.github.io/tree-sitter/using-parsers#static-node-types
pub const DTD_NODE_TYPES: &str = include_str!("../../dtd/src/node-types.json");


#[cfg(test)]
mod tests {
#[test]
Expand Down
Loading

0 comments on commit 8cd508b

Please sign in to comment.