deps: support tree-sitter 0.24
This commit is contained in:
committed by
Michael Hoffmann
parent
9e3ec9848f
commit
6bc92930a7
@@ -15,7 +15,7 @@ include = ["bindings/rust/*", "grammar.js", "queries/*", "src/*"]
|
|||||||
path = "bindings/rust/lib.rs"
|
path = "bindings/rust/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tree-sitter = "~0.20.10"
|
tree-sitter = "~0.24"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
cc = "1.0"
|
cc = "1.0"
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ mod tests {
|
|||||||
fn test_can_load_grammar() {
|
fn test_can_load_grammar() {
|
||||||
let mut parser = tree_sitter::Parser::new();
|
let mut parser = tree_sitter::Parser::new();
|
||||||
parser
|
parser
|
||||||
.set_language(super::language())
|
.set_language(&super::language())
|
||||||
.expect("Error loading hcl language");
|
.expect("Error loading hcl language");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user