nvim-treesitter/queries
Santos Gallegos 1ec36fdcd5
comment(highlights): reduce false positives (#4298)
There are a couple cases where the comment highlights
will match things that aren't necessary a tag.
For example in Rust, when commenting a block that deals with
generics (generics are declared as `T: Type`),
this may be distracting.

So, instead of highlighting all tags, we can restrict
to highlighting the explicit keywords.

Ref https://github.com/stsewd/tree-sitter-comment/issues/14
2023-02-13 09:43:26 +01:00
..
ada feat: add Ada 2022-12-22 14:46:53 +01:00
agda highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
arduino feat(arduino): separate from cpp 2022-11-18 16:51:08 +01:00
astro astro: add injections for scss 2023-02-11 15:55:56 -08:00
awk highlights: create subscoping for ternary operator 2022-12-02 21:42:11 +01:00
bash injections: add more regex injections 2022-11-27 17:35:10 +01:00
beancount highlights(beancount): update on latest updates 2023-01-28 15:03:55 +01:00
bibtex add basic queries for bibtex 2021-03-22 22:19:10 +01:00
blueprint parsers: add blueprint parser 2022-09-12 10:54:58 +01:00
c highlights(c): extern in linkage specification 2023-01-26 17:39:24 +01:00
c_sharp c_sharp: update parser and queries (#4169) 2023-01-16 17:49:26 +00:00
capnp fix(capnp): update highlights 2023-01-28 13:33:21 +01:00
chatito feat: add chatito 2023-02-04 04:19:40 -08:00
clojure highlights(clojure): use @function.call 2022-09-11 04:16:06 -07:00
cmake add queries project and cmake_minimum_required 2022-12-13 21:17:48 +01:00
comment comment(highlights): reduce false positives (#4298) 2023-02-13 09:43:26 +01:00
commonlisp Update queries/commonlisp/highlights.scm 2021-05-17 20:45:31 +02:00
cooklang Add Cooklang 2022-03-17 08:40:34 +01:00
cpp injections(cpp): add injections for raw string literals 2023-01-09 21:41:13 +02:00
css highlights(css): use more specific groups 2022-11-26 13:17:51 +02:00
cuda highlights(cuda): add __noinline__ 2023-02-01 20:40:39 +02:00
d highlights(d): use more specific groups 2022-11-26 13:17:51 +02:00
dart highlights(dart): use more specific groups 2022-11-26 13:17:51 +02:00
devicetree Revert "Comment: use @combined to create just one tree per buffer (#1252)" 2021-05-07 16:51:57 +02:00
diff feat(diff): add diff parser 2022-10-19 16:22:58 -07:00
dockerfile highlights(dockerfile): add several highlights 2022-10-15 08:12:55 -07:00
dot highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
ebnf Add ebnf parser 2022-11-25 13:25:45 +01:00
ecma highlights(ecma): limit constructor highlight 2023-02-03 14:32:28 -08:00
eex Add tree-sitter-eex parser for (L)EEx files (#2351) 2022-01-25 16:52:51 +00:00
elixir highlights(elixir): fix captures 2022-11-26 13:17:51 +02:00
elm highlights(elm): fix boolean literals 2023-01-14 14:02:15 -08:00
elsa feat: add elsa 2023-01-30 09:45:17 +02:00
elvish highlights(elvish): fix captures 2022-11-26 13:17:51 +02:00
embedded_template Add embedded template to support ERB files 2022-05-05 01:34:59 +02:00
erlang feat(erlang)!: switch parser to maintained fork (#3791) 2022-12-08 19:40:41 +01:00
fennel folds(fennel): add let, fn, let_clause, quoted_list, local, global folds 2023-01-09 10:40:53 +01:00
fish chore(fish): update test command highlight query (#4306) 2023-02-13 00:19:48 +02:00
foam support PyFoam syntax in OpenFOAM files 2022-01-16 18:59:29 +01:00
fortran highlights(fortran): use more specific groups 2022-11-26 13:17:51 +02:00
fsh parsers: Add FHIR Shorthand (FSH) (#4052) 2023-01-18 17:58:45 +00:00
func feat: add func 2023-02-02 23:28:46 +02:00
fusion highlights: create subscoping for ternary operator 2022-12-02 21:42:11 +01:00
gdscript highlights(gdscript): use more specific groups 2022-11-26 13:17:51 +02:00
git_rebase feat(git_rebase): add git_rebase parser 2022-10-28 10:36:23 +02:00
gitattributes highlights(gitattributes): fix captures 2022-11-26 13:17:51 +02:00
gitcommit feat(gitcommit): improve diff injection since last parser update 2022-11-25 10:58:11 +01:00
gitignore feat(spell): support more languages 2022-09-26 13:47:12 +01:00
gleam highlights(gleam): use more specific groups 2022-11-26 13:17:51 +02:00
glimmer Prefer lua-match over match 2021-11-23 10:02:06 +01:00
glsl highlights(glsl): use more specific groups 2022-11-26 13:17:51 +02:00
go injections(go): inject regex into some regexp functions 2022-12-22 10:12:14 +01:00
godot_resource Rename queries: godotResource -> godot_resource 2021-11-25 23:02:57 +01:00
gomod Add support for new golang go.work files 2021-12-18 20:02:08 +01:00
gosum feat: add gosum 2023-02-03 20:38:40 +02:00
gowork Add support for new golang go.work files 2021-12-18 20:02:08 +01:00
graphql highlights(graphql): fix captures 2022-11-26 13:17:51 +02:00
hack highlights: create subscoping for ternary operator 2022-12-02 21:42:11 +01:00
haskell highlights(haskell): don't match True|False in other identifiers 2023-01-14 14:29:00 -08:00
hcl feat(hcl,terraform): split terraform from hcl, add specialized queries for tf 2022-12-29 22:18:41 +01:00
heex Support HEEx slots 2022-01-31 09:19:01 +01:00
help fixup! help: update queries 2022-11-22 15:28:30 +01:00
hjson Support hjson 2021-09-19 14:19:20 +02:00
hlsl highlights(hlsl): use more specific groups 2022-11-26 13:17:51 +02:00
hocon add hocon 2022-01-16 14:59:39 +01:00
html refactor(vue, html): Update injections 2023-01-03 12:05:10 +01:00
html_tags injections(html): update injection queries 2023-01-21 20:40:42 +01:00
htmldjango feat: add htmldjango 2023-01-21 17:01:45 +01:00
http injections(http): add comment injection 2021-11-12 21:52:50 +01:00
ini folds(ini): add folds.scm 2023-01-21 01:05:57 +01:00
java highlights(java): fix '!',param,global group 2022-12-19 00:03:18 +02:00
javascript Expand locals to include properties and methods 2022-11-25 18:24:11 +01:00
jq jq/highlights.scm should highlight the elif keyword 2023-02-02 14:40:36 +02:00
jsdoc Fix jsdoc: play nice with the comment parser (#1108) 2021-03-27 10:51:16 -05:00
json Partially revert json highlight updates 2023-01-22 10:34:19 +02:00
json5 Reorder json5 queries 2021-08-30 11:42:41 +02:00
jsonc feat(spell): support more languages 2022-09-26 13:47:12 +01:00
jsonnet feat: add jsonnet 2022-09-10 11:09:10 -07:00
jsx fix(jsx): add missing indent end mark to elements 2023-01-04 12:14:03 +01:00
julia feat(julia/highlights): Add as keyword 2023-02-03 14:29:30 -08:00
kdl feat: improve KDL queries 2023-02-05 23:08:41 -08:00
kotlin highlights(kotlin): fix function highlights 2023-02-12 01:21:58 -08:00
lalrpop injections(lalrpop): add rust & regex 2022-11-26 13:17:51 +02:00
latex latex: @nospell for environment names, citations and commands (#3948) 2022-12-08 11:01:56 +01:00
ledger Update ledger injections 2021-09-10 01:24:38 +02:00
llvm highlights(llvm): use more specific groups 2022-11-26 13:17:51 +02:00
lua highlights(lua): use @method.call 2022-12-15 12:42:51 +01:00
m68k Add additional m68k queries 2022-04-27 16:54:38 +02:00
make highlights(make): fix captures 2022-11-26 13:17:51 +02:00
markdown markdown: add strikethrough and blockquote captures 2023-01-14 11:52:25 +01:00
markdown_inline feat(markdown): add latex injections 2023-02-05 08:29:45 -08:00
menhir Add support for menhir (OCaml parser generator) 2022-09-05 14:48:58 -07:00
mermaid feat: add mermaid 2022-11-20 12:24:55 +01:00
meson highlights: create subscoping for ternary operator 2022-12-02 21:42:11 +01:00
nickel fix(nickel): follow upstream change in https://github.com/nickel-lang/tree-sitter-nickel/pull/13/files#diff-d485a982e458ef8da2cc203585065b7542665cb80b78d230b1e8f77ea25825d4 2023-01-11 21:49:29 +01:00
ninja Add ninja parser (#2217) 2022-01-08 01:26:33 +00:00
nix injections(nix): remove @combined 2023-01-11 21:27:02 +01:00
ocaml highlights(ocaml): use more specific groups 2022-11-26 13:17:51 +02:00
ocaml_interface Add comment parser to highlight comment tags (#893) 2021-03-12 11:21:46 -05:00
ocamllex Revert "Comment: use @combined to create just one tree per buffer (#1252)" 2021-05-07 16:51:57 +02:00
pascal highlights(pascal): use more specific groups 2022-11-26 13:17:51 +02:00
perl highlights: create subscoping for ternary operator 2022-12-02 21:42:11 +01:00
php highlights(php): use lua-match? 2023-02-12 01:23:19 -08:00
phpdoc fix(phpdoc): highlight optional type as @type 2022-11-29 12:19:19 +01:00
pioasm highlights(pioasm): fix captures 2022-11-26 13:17:51 +02:00
poe_filter feat: add poe_filter 2023-01-25 23:53:04 +02:00
prisma fix(prisma): highlight "type" keyword 2022-03-24 09:43:33 +01:00
proto highlights(proto): highlight optional 2022-10-04 10:09:09 -04:00
pug Fix pug injection 2021-11-30 23:40:49 +01:00
python highlights(python): fix captures 2022-11-26 13:17:51 +02:00
ql update tests 2023-01-31 12:23:13 +01:00
qmljs highlights(qmljs): fix captures 2022-11-26 13:17:51 +02:00
query highlights: use @preproc where appropriate 2022-10-15 08:49:01 -07:00
r move 'in' to repeat 2022-12-31 13:50:47 +01:00
racket Add racket support 2022-08-03 00:25:14 +02:00
rasi highlights(rasi): fix captures 2022-11-26 13:17:51 +02:00
regex Regex highlights: Add constant highlight for class_character 2021-01-03 19:05:38 +01:00
rego rego: update parser and queries (#3805) 2022-11-16 09:35:41 +01:00
rnoweb rnoweb: Use new inline/chunk distinction 2022-06-19 21:45:19 +02:00
ron feat: add RON 2023-02-05 02:21:49 -08:00
rst highlights(rst): don't spell check links 2023-01-22 14:11:45 +01:00
ruby Update indents.scm 2023-01-09 22:17:50 +01:00
rust folds(rust): add array_expression 2023-01-05 20:37:14 +01:00
scala refactor(scala): update scala highlights for uppercase identifiers 2023-01-21 17:59:30 +01:00
scheme fix: update scheme queries to parser change 2022-11-06 11:32:36 +01:00
scss feat(scss): add known at-rules to keyword list 2023-01-13 02:46:16 -08:00
slint Update slint indent queries 2022-12-27 17:52:29 +01:00
smali refactor: move method and end_method to @keyword.function 2023-01-09 21:24:54 +01:00
smithy feat: add smithy (#4245) 2023-01-31 16:14:58 +02:00
solidity highlights(solidity): use more specific groups 2022-11-26 13:17:51 +02:00
sparql Update queries 2021-12-22 21:17:28 +01:00
sql sql: update parser and query (#3820) 2022-11-18 14:20:39 +00:00
supercollider supercollider: add support for const 2022-01-29 11:10:24 +01:00
surface Update surface version, fix highlights 2021-08-18 14:07:59 +02:00
svelte injections(svelte): add pug injection 2023-02-11 15:40:34 -08:00
swift highlights(swift): fix captures 2022-11-26 13:17:51 +02:00
sxhkdrc highlights(sxhkdrc): fix captures 2022-11-26 13:17:51 +02:00
t32 feat(t32): initial support 2022-12-21 23:57:06 +01:00
teal feat(spell): support more languages 2022-09-26 13:47:12 +01:00
terraform feat(hcl,terraform): split terraform from hcl, add specialized queries for tf 2022-12-29 22:18:41 +01:00
thrift chore: update thrift queries 2023-01-29 00:52:59 +01:00
tiger highlights(tiger): fix captures 2022-11-26 13:17:51 +02:00
tlaplus Updated queries and parser version 2022-07-13 21:33:45 +02:00
todotxt parsers: Add todotxt parser 2022-02-28 22:46:47 +01:00
toml highlights(toml): fix captures 2022-11-26 13:17:51 +02:00
tsx injections(jsx): highlight <style jsx> as css 2022-08-26 12:05:02 -07:00
turtle Revert "Comment: use @combined to create just one tree per buffer (#1252)" 2021-05-07 16:51:57 +02:00
twig feat(twig): improve twig highlights 2022-11-30 12:35:54 +01:00
typescript highlights(typescript): add module keyword 2022-12-13 21:10:26 +01:00
v Split func/method definition from calls in several programming language queries 2022-08-03 12:05:30 -07:00
vala highlights(vala): fix captures 2022-11-26 13:17:51 +02:00
verilog highlights(verilog): fix captures 2022-11-26 13:17:51 +02:00
vhs feat: vhs (.tape) support (#3726) 2022-11-13 12:33:54 +01:00
vim highlights: create subscoping for ternary operator 2022-12-02 21:42:11 +01:00
vue refactor(vue, html): Update injections 2023-01-03 12:05:10 +01:00
wgsl highlights(wgsl): comment -> {line,block}_comment 2023-01-10 10:07:08 +01:00
wgsl_bevy parsers: add wgsl_bevy 2022-12-31 15:19:48 +01:00
yaml injections(yaml): fix injections 2022-12-21 23:38:07 +01:00
yang injections(yang): add comment & regex 2022-11-26 13:17:51 +02:00
zig highlights(zig): fix captures 2022-11-26 13:17:51 +02:00