summaryrefslogtreecommitdiff
path: root/runtime/queries/rust/locals.scm
Commit message (Collapse)AuthorAge
* add highlight scope for type parameters (#8660)Joey Hain2023-11-03
| | | | | * rust: add highlight scope for type parameters * handle optional type parameters
* Rust queries: add `(function_item)` as a local scope (#3345)ChrHorn2022-08-06
|
* Remove let_declaration from Rust locals tracking (#3212)Michael Davis2022-07-28
|
* Fix locals tracking in Rust closures (#3027)Michael Davis2022-07-20
| | | | | | | | | | 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.
* syntax: Add go & rust locals, improve tree-sitter error messageBlaž Hrastnik2021-09-06