helix-mirror/runtime/queries
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
..
bash Update bash tree sitter (#1917) 2022-04-01 08:48:39 -05:00
c Introduce storage_class highlight scope (#2731) 2022-06-14 12:35:36 -05:00
c-sharp C# highlighting improvements (#1795) 2022-03-12 12:06:56 -06:00
cairo Add Cairo support 2022-05-01 11:24:17 +09:00
clojure Add clojure language support (#2780) 2022-06-16 11:47:52 -05:00
cmake Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
comment Add tree-sitter-comment (#1300) 2021-12-19 23:56:56 +09:00
cpon feat(lang): Cpon lang support (#2355) 2022-05-01 09:34:46 -05:00
cpp Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
css tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
dart Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
devicetree feat(lang): add devicetree (Flattened Device Tree Source) (#2329) 2022-04-29 15:08:00 -05:00
dockerfile Support dockerfiles (#1303) 2021-12-21 18:22:15 +09:00
edoc edoc: prevent rogue punctuation highlights 2022-07-01 11:04:23 +02:00
eex add tree-sitter-eex 2022-04-13 14:28:51 +09:00
ejs add tree-sitter-embedded-template (erb & ejs) (#2055) 2022-04-10 08:23:06 +09:00
elixir text-objects: add test capture & elixir queries 2022-06-21 11:32:03 -05:00
elm Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
elvish languages: added elvish (#2948) 2022-07-03 16:19:12 -05:00
erb add tree-sitter-embedded-template (erb & ejs) (#2055) 2022-04-10 08:23:06 +09:00
erlang erlang: highlight modules in behaviour attributes 2022-07-01 11:04:23 +02:00
fish Fixing (in two ways) a small typo (#2156) 2022-04-18 13:12:47 +09:00
fortran add fortran language (#3025) 2022-07-10 11:27:44 -05:00
gdscript gdscript support (#1985) 2022-04-16 00:35:23 +09:00
git-attributes feat(languages): git-ignore and git-attributes (#2397) 2022-05-05 08:47:28 -05:00
git-commit Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
git-config add tree-sitter-git-config (#1426) 2022-01-09 22:10:20 +08:00
git-diff Add tree-sitter-git-diff (#1373) 2021-12-30 00:31:23 +09:00
git-ignore feat(languages): git-ignore and git-attributes (#2397) 2022-05-05 08:47:28 -05:00
git-rebase add tree-sitter-git-rebase (#1402) 2021-12-31 06:58:47 +08:00
gleam add test textobjects queries for erlang,gleam,go,python,rust 2022-06-21 11:32:03 -05:00
glsl Add textobjects.scm to GLSL (#3051) 2022-07-12 10:13:57 -05:00
go add test textobjects queries for erlang,gleam,go,python,rust 2022-06-21 11:32:03 -05:00
gomod feat(lang): add go.mod and go.work support (#2197) 2022-04-20 11:16:02 -05:00
gowork feat(lang): add go.mod and go.work support (#2197) 2022-04-20 11:16:02 -05:00
graphql feat(languages): GraphQL (#1515) 2022-01-21 23:16:40 +09:00
hare feat(lang): add hare language support (#2289) 2022-04-26 14:55:00 -05:00
haskell tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
hcl replace constant.number with constant.numeric (#2389) 2022-05-04 14:51:31 +09:00
heex replace module captures with namespace 2022-07-01 11:04:23 +02:00
html html: highlight punctuation 2022-07-01 11:04:23 +02:00
iex add tree-sitter-iex (#1576) 2022-01-25 15:50:34 +09:00
java tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
javascript Introduce storage highlighting for typescript/javascript (#2961) 2022-07-06 08:54:07 -05:00
jsdoc adds missing tree-sitter-comment injection for js/ts (#2763) 2022-06-20 10:55:51 -05:00
json Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
jsx separate JSX queries from javascript (#1921) 2022-04-02 10:07:35 +09:00
julia tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
kotlin Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
latex tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
lean Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
ledger Remove broken ledger tag highlight (#2988) 2022-07-06 07:35:36 -05:00
llvm Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
llvm-mir Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
llvm-mir-yaml Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
lua Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
make Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
markdown markdown: limit raw block highlight to code fence content 2022-07-01 11:04:23 +02:00
meson feat(lang): add Meson language support (#2314) 2022-05-11 10:06:37 +09:00
nickel feat(lang): Update nickel to include "rec" keyword (#2320) 2022-04-29 07:34:15 -05:00
nix feat(lang): Update Nix grammar & improve queries (#2472) 2022-05-30 13:47:18 -05:00
nu feat(lang): add nushell language support (#2225) 2022-04-22 09:37:51 -05:00
ocaml Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
ocaml-interface tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
odin feat(languages): add odin language (#2399) 2022-05-05 12:09:09 -05:00
openscad support for openscad (#2680) 2022-06-06 12:26:56 -05:00
org Initial basic Org markup support thanks to tree-sitter-org (#1845) 2022-03-20 17:14:30 -05:00
perl Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
php Add parameter.around text object query 2022-05-25 21:26:06 +09:00
prisma add prisma tree-sitter and lsp support (#2703) 2022-06-12 14:08:51 -05:00
protobuf Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
python Disable tree-sitter python indents, use fallback for now 2022-07-01 19:17:19 +09:00
r add languages r and rmarkdown (#1998) 2022-04-08 09:30:44 +09:00
regex add tree-sitter-regex (#1362) 2022-01-06 23:00:00 +08:00
rescript Fix Rescript hightlights query (#1863) 2022-03-23 14:03:58 -05:00
rmarkdown add languages r and rmarkdown (#1998) 2022-04-08 09:30:44 +09:00
ron add language ron (#1925) 2022-04-05 07:39:22 -05:00
ruby Ruby TextObjects and more file extensions (#2143) 2022-04-17 19:25:44 -05:00
rust Fix locals tracking in Rust closures (#3027) 2022-07-20 11:51:35 +09:00
scala Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
scheme Add Scheme support 2022-05-22 00:01:07 +09:00
scss Add SCSS language support (#3074) 2022-07-17 17:55:20 +08:00
solidity Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
sql feat(languages): SQL (#2097) 2022-04-14 13:26:20 -05:00
sshclientconfig Add tree-sitter ssh client config queries (#2498) 2022-05-18 14:49:50 -05:00
starlark support Bazel languages (#2903) 2022-06-28 08:48:38 +05:30
svelte Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
swift Add swift language (#2033) 2022-04-08 13:10:37 -05:00
tablegen Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
toml TOML highlight: use variable.other.member instead of string for quoted keys (#2391) 2022-05-05 16:14:17 +09:00
tsq Update TSQ queries (#2960) 2022-07-05 20:01:05 +09:00
tsx tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
twig epocsquadron/add tree sitter twig (#1602) 2022-02-01 12:35:07 +09:00
typescript Introduce storage highlighting for typescript/javascript (#2961) 2022-07-06 08:54:07 -05:00
ungrammar Added ungrammar language support (#3048) 2022-07-12 10:06:53 -05:00
v Add Vlang tree-sitter in the languages.toml (#2526) 2022-05-28 14:46:10 -05:00
vala feat(lsp): add vala language support (#2243) 2022-04-24 11:21:07 -05:00
verilog Fix some typos (#2978) 2022-07-05 21:49:54 -05:00
vue tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
wgsl tree sitter comments injections (#1527) 2022-01-21 00:50:06 +09:00
yaml Indentation rework (#1562) 2022-03-31 00:08:07 +09:00
zig Indentation rework (#1562) 2022-03-31 00:08:07 +09:00