Commit Graph

5 Commits (7cbdff4df863f26f01b062ef083fd49aca83091a)

Author SHA1 Message Date
Joey Hain 70bbbd7d19
add highlight scope for type parameters (#8660)
* rust: add highlight scope for type parameters

* handle optional type parameters
1 year ago
ChrHorn 23f4a40a7a
Rust queries: add `(function_item)` as a local scope (#3345) 2 years ago
Michael Davis 9ed9c3faca
Remove let_declaration from Rust locals tracking (#3212) 2 years ago
Michael Davis 9753da6ab7
Fix locals tracking in Rust closures (#3027)
The fix comes from the rewriting of the `closure_parameters` stanza:
it was capturing the entire `closure_parameters` node including
paretheses, whitespace, and commas. Capturing the identifiers within
fixes the tracking.

In order to make sure locals definitions from closure parameters don't
leak out of the body of the closure, though, we should also mark the
closure itself as a locals scope.
2 years ago
Blaž Hrastnik 4ac29434cb syntax: Add go & rust locals, improve tree-sitter error message 3 years ago