Skip to content

Commit

Permalink
bump tree-sitter to 0.22.1
Browse files Browse the repository at this point in the history
Summary:
This is quite a big change, and triggered re-creating all the bindings.
The bindings are also more comprehensive now, supporting additional languages.

There were two breaking [changes](https://github.com/tree-sitter/tree-sitter/blob/master/CHANGELOG.md#0221--2024-03-10) that had to be dealt with
- braces no longer allowed in regexps in the grammer
- highlights are now last-match-wins, rather than first-match-wins

Reviewed By: michalmuskala, perehonchuk

Differential Revision: D54944481

fbshipit-source-id: 7ff71dfc96d9781ea021a52afcfcbcbbc8da3864
  • Loading branch information
alanz authored and facebook-github-bot committed Mar 18, 2024
1 parent e6fdf63 commit 5a5ee4a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ thiserror = "1.0"
threadpool = "1.8.1"
timeout-readwrite = "0.3.3"
toml = "0.5"
tree-sitter = "0.20.10"
tree-sitter = "0.22.1"
# @fb-only: tree-sitter-erlang = { path = "./tree-sitter-erlang" }
url = "2.4.1"
tree-sitter-erlang = "0.4.0" # @oss-only
Expand Down
2 changes: 1 addition & 1 deletion crates/syntax/src/tree_sitter_elp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Parser {
pub fn new() -> Self {
let mut parser = tree_sitter::Parser::new();
parser
.set_language(language())
.set_language(&language())
.expect("incompatible tree-sitter");
Parser(parser)
}
Expand Down

0 comments on commit 5a5ee4a

Please sign in to comment.