-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tree-sitter to 0.22.1 #379
base: master
Are you sure you want to change the base?
Conversation
8fd353c
to
6464591
Compare
54c3fde
to
c018e38
Compare
Cargo.toml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actual file I changed.
}, | ||
"devDependencies": { | ||
"tree-sitter-cli": "0.20.7", | ||
"prettier": "3.0.0-alpha.6" | ||
"tree-sitter-cli": "0.22.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I changed this, and the rest of the change was made automatically.
@@ -6,7 +6,7 @@ | |||
//! ``` | |||
//! let code = ""; | |||
//! let mut parser = tree_sitter::Parser::new(); | |||
//! parser.set_language(tree_sitter_scala::language()).expect("Error loading scala grammar"); | |||
//! parser.set_language(&tree_sitter_scala::language()).expect("Error loading scala grammar"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor Rust update.
(field_expression field: (identifier) @property) | ||
(field_expression value: (identifier) @type | ||
(#match? @type "^[A-Z]")) | ||
|
||
(type_identifier) @type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are now moved up front to deprioritize the match.
See the tree-sitter release notes for details - https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.0 - tree-sitter/tree-sitter@v0.21.0...v0.22.0 - https://github.com/tree-sitter/tree-sitter/releases/tag/v0.21.0
c018e38
to
8a06ec5
Compare
tree-sitter now uses last-wins rules for highlighting. This moves the rules around to match the older highlighting. Except operator, which I've now let it take precedence over `function.call`.
5054884
to
084232d
Compare
Fixes #384
See the tree-sitter release notes for details
tree-sitter now uses last-wins rules for highlighting. This PR updates the highlight queries around to match the older highlighting semantics. Except
operator
, which I've now let it take precedence overfunction.call
.