nvim-treesitter/queries
Christian Clason 1ae9b0e455 feat!: align standard captures with upstream
Problem: Sharing highlight queries with upstream tree-sitter and
Helix is difficult.

Solution: Where reasonable, use capture names in tree-sitter's standard
list or Helix's Atom-style hierarchy.

Specifically:

* tree-sitter "standard capture names"
  (3f44b89685/highlight/src/lib.rs (L20-L72)):

  - `@parameter` -> `@variable.parameter`
  - `@field` -> `@variable.member`
  - `@namespace` -> `@module`
  - `@float` -> `@number.float`
  - `@symbol` -> `@string.special.symbol`
  - `@string.regex` -> `@string.regexp`
  - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
  - `@text.title` -> `@markup.heading`
  - `@text.literal` -> `@markup.raw`
  - `@text.reference` -> `@markup.link`
  - `@text.uri` -> `@markup.link.url` (in markup links)
  - `@string.special` -> `@markup.link.label` (non-url links)
  - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`)

* Helix captures
  (https://docs.helix-editor.com/master/themes.html#syntax-highlighting):

  - `@method` -> `@function.method`
  - `@method.call` -> `@function.method.call`
  - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}`
  - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}`
  - `@text.uri` -> `@string.special.url` (outside markup)
  - `@preproc` -> `@keyword.directive`
  - `@define` -> `@keyword.directive`(`.define`?)
  - `@storageclass` -> `@keyword.storage`
  - `@conditional` -> `@keyword.conditional`
  - `@debug` -> `@keyword.debug`
  - `@exception` -> `@keyword.exception`
  - `@include` -> `@keyword.import`
  - `@repeat` -> `@keyword.repeat`

* cleanup

  - remove some redundant `@conceal` (but still allow it for conceal-only patterns)
  - remove obsolete `@error` (syntax linting is out of scope for this repo)
  - sort, cleanup capture list in `CONTRIBUTING.md`
2024-01-19 16:58:37 +01:00
..
ada feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
agda feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
angular feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
apex feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
arduino chore(c-family): inject all preproc args again 2023-08-13 18:57:23 -04:00
astro astro: add custom component highlighting (#5728) 2023-11-27 22:11:28 +09:00
authzed feat(authzed): add parser and highlight queries. (#5426) 2023-10-07 10:43:35 +09:00
awk feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
bash feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
bass feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
beancount feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
bibtex feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
bicep feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
bitbake feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
blueprint feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
c feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
c_sharp feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
cairo feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
capnp feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
chatito feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
clojure feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
cmake feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
comment feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
commonlisp feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
cooklang feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
corn feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
cpon feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
cpp feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
css feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
csv feat: add CSV, PSV, & TSV 2023-08-17 11:15:54 -04:00
cuda feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
cue feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
d feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
dart feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
devicetree feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
dhall feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
diff feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
dockerfile fix(dockerfile): bash injection on run instructions 2023-09-17 16:32:21 +02:00
dot feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
doxygen feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
dtd feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ebnf feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ecma feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
eds feat: add EDS 2023-09-10 08:38:10 -04:00
eex refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
elixir feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
elm feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
elsa feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
elvish feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
embedded_template feat: @spell on comments 2023-09-12 17:34:58 +02:00
erlang feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
facility feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
fennel feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
firrtl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
fish feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
foam feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
forth feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
fortran feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
fsh feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
func feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
fusion feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gdscript feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
git_config feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
git_rebase feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gitattributes feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gitcommit feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gitignore feat(spell): support more languages 2022-09-26 13:47:12 +01:00
gleam feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
glimmer feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
glsl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gn feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
go feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
godot_resource feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gomod feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gosum feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gowork feat: @spell on comments 2023-09-12 17:34:58 +02:00
gpg feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
graphql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
groovy feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
gstlaunch feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
hack feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
hare feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
haskell feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
haskell_persistent feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
hcl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
heex feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
hjson refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
hlsl chore(c-family): inject all preproc args again 2023-08-13 18:57:23 -04:00
hocon feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
hoon feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
html feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
html_tags feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
htmldjango feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
http feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
hurl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ini feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ispc feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
janet_simple feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
java feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
javascript feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
jq feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
jsdoc Fix jsdoc: play nice with the comment parser (#1108) 2021-03-27 10:51:16 -05:00
json feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
json5 refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
jsonc chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
jsonnet feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
jsx chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
julia feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
kconfig feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
kdl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
kotlin feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
kusto feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
lalrpop feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
latex feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ledger feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
leo feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
linkerscript feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
liquidsoap feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
llvm feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
lua feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
luadoc feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
luap feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
luau feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
m68k feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
make feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
markdown feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
markdown_inline feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
matlab feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
menhir feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
mermaid feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
meson feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
mlir feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
nasm feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
nickel feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
nim feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
nim_format_string feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ninja feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
nix feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
nqc feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
objc feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
objdump feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ocaml feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ocaml_interface feat: add indents for ocaml and ocaml interface (#4725) 2023-05-01 20:42:21 +09:00
ocamllex feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
odin feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
pascal feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
passwd feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
pem refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
perl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
php feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
phpdoc feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
pioasm feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
po feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
pod feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
poe_filter feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
pony feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
printf feat(injections): add printf format strings 2024-01-19 16:58:37 +01:00
prisma feat(prisma): folding queries (#5541) 2023-10-21 12:04:23 +09:00
promql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
properties feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
proto feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
prql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
psv feat: add CSV, PSV, & TSV 2023-08-17 11:15:54 -04:00
pug feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
puppet feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
purescript feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
pymanifest refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
python feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
qmldir feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
qmljs feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
query feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
r feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
racket feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
rasi feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
rbs feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
re2c feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
regex feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
rego feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
requirements feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
rnoweb fix(rnoweb): add highlights query (#5622) 2023-11-03 22:51:41 +09:00
robot feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ron feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
rst feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ruby feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
rust feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
scala feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
scfg feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
scheme feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
scss feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
slang feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
slint feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
smali feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
smithy feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
snakemake feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
solidity feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
soql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
sosl feat: add parsers and queries for apex, sosl, soql (#5396) 2023-09-17 20:00:21 +03:00
sparql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
sql feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
squirrel feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
ssh_config feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
starlark feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
strace feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
styled feat: add tree-sitter-styled (#5735) 2023-12-19 21:53:00 +09:00
supercollider feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
surface feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
svelte feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
swift feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
sxhkdrc feat: @spell on comments 2023-09-12 17:34:58 +02:00
systemtap feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
t32 feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
tablegen feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
teal feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
templ feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
terraform feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
textproto feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
thrift feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
tiger feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
tlaplus feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
todotxt parsers: Add todotxt parser 2022-02-28 22:46:47 +01:00
toml feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
tsv feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
tsx injections(jsx): highlight <style jsx> as css 2022-08-26 12:05:02 -07:00
turtle feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
twig feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
typescript feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
typoscript feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
udev feat(locals)!: switch to upstream captures 2024-01-19 16:58:37 +01:00
ungrammar feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
unison feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
usd feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
uxntal feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
v feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
vala feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
verilog feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
vhs feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
vim feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
vimdoc feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
vue feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
wgsl feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
wgsl_bevy feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
wing feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
xcompose feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
xml feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
yaml feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
yang feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
yuck feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00
zig feat!: align standard captures with upstream 2024-01-19 16:58:37 +01:00