helix-mods/runtime/queries/rust
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.
2022-07-20 11:51:35 +09:00
..
highlights.scm rust: fix highlight corner-cases 2022-07-01 11:04:23 +02:00
indents.scm Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
injections.scm add tree-sitter-regex (#1362) 2022-01-06 23:00:00 +08:00
locals.scm Fix locals tracking in Rust closures (#3027) 2022-07-20 11:51:35 +09:00
textobjects.scm add test textobjects queries for erlang,gleam,go,python,rust 2022-06-21 11:32:03 -05:00