Skip to content

Commit

Permalink
Update tree-sitter to 0.22.6 (#287)
Browse files Browse the repository at this point in the history
This switches the tree-sitter-protobuf implementation to rewinfrey/tree-sitter-proto.
  • Loading branch information
eed3si9n authored Jul 17, 2024
1 parent 6f5897a commit 00f6433
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions crates/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/protobuf_extractor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
pretty_env_logger = "0.5.0"
log = "0.4.22"
tree-sitter = "0.19.3"
tree-sitter-proto = { git = "https://github.com/mitchellh/tree-sitter-proto.git", rev = "42d82fa18f8afe59b5fc0b16c207ee4f84cb185f"}
tree-sitter = "0.22.6"
tree-sitter-proto = { git = "https://github.com/rewinfrey/tree-sitter-proto.git", rev = "8a9aac7059e829d718b54dadfb778b736702ea29"}

[dev-dependencies]
tempfile = "3.10.1"
Expand Down
2 changes: 1 addition & 1 deletion crates/protobuf_extractor/src/extract_protobuf_imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl ProtobufSource {
let mut parser = Parser::new();
let mut well_known_refs = Vec::default();
let mut bzl_gen_build_commands = Vec::default();
parser.set_language(tree_sitter_proto::language())?;
parser.set_language(&tree_sitter_proto::language())?;
let tree = match parser.parse(source, None) {
Some(tree) => tree,
None => bail!("parse failed"),
Expand Down

0 comments on commit 00f6433

Please sign in to comment.