nvim-treesitter/queries
aMOPel aeb5ad8ae1
feat(nim): added nim parser and queries (#5556)
* feat(nim): added nim parser and queries

* correct scanner.cc to scanner.c

Co-authored-by: Christian Clason <c.clason@uni-graz.at>

* fix(nim): corrected capture for @function.macro

* feat(nim highlights): added @field capture for discriminator field in
object variant

* bumped parser version, adapted highlights.scm and condensed
injections.scm

* improved nim_format_string highlights.scm

* bump nim parser version again

* removed overlap between queries for generalized strings in
injections.scm

* improved formattin] in nim_format_string/injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* corrected asm parser name in injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* improved formatting in highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* removed @error capture from highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* improved wording in comment in highlights.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* removed priority from (dot_expression left: @none) capture, since it's
at the end of the file anyways

* removed comments listing unused captures

* reverted @error capture in nim_format_string/highlights.scm back to
@none

* condensed string alternatives in injections.scm

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* condensed string alternatives in injections.scm (second part)

Co-authored-by: ObserverOfTime <chronobserver@disroot.org>

* added comment to explain reasoning behind priority use

* swapped order of @punctuation.delimiter and @operator to get rid of
superfluous comment

* moved macro and template keywords to @preproc capture

* removed priorities in highlights.scm and shifted @parameter capture
behind @type capture

* improved formatting in locals.scm

* added queries for missing cases of @definition.namespace capture in
locals.scm

* removed some trailing whitespace

* added @namespace queries for highlights.scm

* bumped parser version again

* removed superfluous @type capture

* removed `@type`s `has-ancestor` and removed `(_ (_ ...` structures,
but added priorities

* added missing @constant capture to some queries in highlights.scm

* fixed priority numbers so they work when injecting nim (in markdown)

* added @none captures back to injection targets

* added (assembly_statement) injection query

* added indent queries

* removed indents.scm again

* added some missing queries for dot_generic_call, concept_declaration and
pragma_statement

---------

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2023-10-30 20:35:51 +09:00
..
ada refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
agda chore: switch agda upstream 2023-09-18 07:42:58 +02:00
apex feat: add parsers and queries for apex, sosl, soql (#5396) 2023-09-17 20:00:21 +03:00
arduino chore(c-family): inject all preproc args again 2023-08-13 18:57:23 -04:00
astro chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
authzed feat(authzed): add parser and highlight queries. (#5426) 2023-10-07 10:43:35 +09:00
awk fix(directive): make downcase work on captures 2023-08-12 17:34:15 +02:00
bash feat(bash): update parser and queries 2023-08-30 14:36:10 -04:00
bass chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
beancount queries/*/highlights.scm : remove @spell for strings 2023-08-07 16:39:40 +01:00
bibtex feat: @spell on comments 2023-09-12 17:34:58 +02:00
bicep chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
bitbake refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
blueprint feat: @spell on comments 2023-09-12 17:34:58 +02:00
c refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
c_sharp feat(c_sharp): add missing highlights 2023-08-16 17:44:47 -04:00
cairo refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
capnp refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
chatito refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
clojure fix(clojure): fix field highlighting (#5319) 2023-08-27 10:25:43 +03:00
cmake indents(cmake): dedent brackets, else, endwhile 2023-06-29 20:26:23 +09:00
comment perf(comment): remove spell capture 2023-09-12 17:34:58 +02:00
commonlisp queries/*/highlights.scm : remove @spell for strings 2023-08-07 16:39:40 +01:00
cooklang Add Cooklang 2022-03-17 08:40:34 +01:00
corn refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
cpon refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
cpp feat: add Doxygen 2023-08-26 04:58:36 -04:00
css refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
csv feat: add CSV, PSV, & TSV 2023-08-17 11:15:54 -04:00
cuda chore(c-family): inject all preproc args again 2023-08-13 18:57:23 -04:00
cue refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
d chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
dart refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
devicetree feat: @spell on comments 2023-09-12 17:34:58 +02:00
dhall refactor: replace some match & vim-match usages 2023-08-23 16:57:18 +03:00
diff feat(diff): add diff parser 2022-10-19 16:22:58 -07:00
dockerfile fix(dockerfile): bash injection on run instructions 2023-09-17 16:32:21 +02:00
dot refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
doxygen feat(doxygen): update queries from upstream 2023-08-31 14:02:31 +03:00
dtd refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
ebnf feat: @spell on comments 2023-09-12 17:34:58 +02:00
ecma fix(ecma_injections): limit function names to alphanumeric characters only 2023-08-31 22:41:07 +09: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 refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
elm chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
elsa feat: @spell on comments 2023-09-12 17:34:58 +02:00
elvish feat: @spell on comments 2023-09-12 17:34:58 +02:00
embedded_template feat: @spell on comments 2023-09-12 17:34:58 +02:00
erlang feat(erlang): add missing keyword 'begin' 2023-10-21 00:00:18 -04:00
fennel chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
firrtl refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
fish refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
foam feat: @spell on comments 2023-09-12 17:34:58 +02:00
forth refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
fortran refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
fsh queries/*/highlights.scm : remove @spell for strings 2023-08-07 16:39:40 +01:00
func feat(func): update highlights 2023-05-13 02:11:04 -04:00
fusion feat: @spell on comments 2023-09-12 17:34:58 +02:00
gdscript refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
git_config refactor(gitconfig): use lua-match instead of match 2023-03-11 04:47:17 -05:00
git_rebase chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
gitattributes refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
gitcommit refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
gitignore feat(spell): support more languages 2022-09-26 13:47:12 +01:00
gleam refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
glimmer feat: @spell on comments 2023-09-12 17:34:58 +02:00
glsl refactor: replace some match & vim-match usages 2023-08-23 16:57:18 +03:00
gn feat: add GN (Generate Ninja) 2023-10-22 01:17:15 -04:00
go refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
godot_resource refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
gomod feat: @spell on comments 2023-09-12 17:34:58 +02:00
gosum feat: add @text.uri where applicable to thrift and gosum 2023-02-18 02:07:28 -08:00
gowork feat: @spell on comments 2023-09-12 17:34:58 +02:00
gpg refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
graphql chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
groovy chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
gstlaunch refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
hack refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
hare refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
haskell feat(haskell): highlights improvements 2023-10-15 14:32:51 -04:00
haskell_persistent feat: add support for haskell persistent library 2023-06-24 15:00:47 -04:00
hcl refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
heex refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02: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: @spell on comments 2023-09-12 17:34:58 +02:00
hoon feat: add Hoon language support 2023-06-29 19:26:44 -04:00
html refactor: remove include-children from queries (#5226) 2023-09-12 08:36:50 +02:00
html_tags feat: @spell on comments 2023-09-12 17:34:58 +02:00
htmldjango chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
http refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
hurl fix(injections): fix injection for hurl for new injection syntax 2023-10-13 17:42:03 +02:00
ini feat: @spell on comments 2023-09-12 17:34:58 +02:00
ispc feat: add Intel Implicit SPMD Program Compiler (ISPC) 2023-05-20 21:52:54 -04:00
janet_simple feat(janet): update highlights 2023-08-16 12:23:18 -04:00
java feat(java): highlight var as @type.builtin 2023-10-13 18:12:18 -04:00
javascript feat(javascript): highlight parameter destructuring patterns 2023-07-01 05:25:05 -04:00
jq chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
jsdoc Fix jsdoc: play nice with the comment parser (#1108) 2021-03-27 10:51:16 -05:00
json refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02: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 refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
jsx chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
julia Improve curly expression alignment 2023-10-29 01:37:31 +02:00
kconfig refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
kdl chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
kotlin chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
lalrpop chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
latex refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
ledger feat: @spell on comments 2023-09-12 17:34:58 +02:00
leo fix(leo): highlights fixes (#5563) 2023-10-23 19:15:49 +09:00
liquidsoap feat: add liquidsoap 2023-10-04 10:58:10 -04:00
llvm refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
lua refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
luadoc feat(luadoc): add more annotations 2023-03-24 08:19:13 -04:00
luap feat: add luap 2023-03-04 11:32:25 -05:00
luau refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
m68k feat: @spell on comments 2023-09-12 17:34:58 +02:00
make chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
markdown fix(markdown): set block quote priority within allowed range 2023-10-15 14:34:08 -04:00
markdown_inline feat(markdown): conceal triple backticks and HTML entities 2023-09-17 23:16:53 +02:00
matlab refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
menhir refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
mermaid feat: add mermaid 2022-11-20 12:24:55 +01:00
meson feat: @spell on comments 2023-09-12 17:34:58 +02:00
mlir feat: @spell on comments 2023-09-12 17:34:58 +02:00
nasm feat: add nasm parser (#5475) 2023-10-09 11:28:28 +03:00
nickel fix(nickel): wrong indent on line after top level comment (#4792) 2023-05-13 15:03:05 +09:00
nim feat(nim): added nim parser and queries (#5556) 2023-10-30 20:35:51 +09:00
nim_format_string feat(nim): added nim parser and queries (#5556) 2023-10-30 20:35:51 +09:00
ninja feat: @spell on comments 2023-09-12 17:34:58 +02:00
nix feat(nix): some highlight improvements 2023-10-12 19:04:55 +00:00
nqc feat: add NQC 2023-08-31 05:25:29 -04:00
objc chore(objc): update folds 2023-05-20 03:52:08 -04:00
objdump feat: add objdump to the supported languages (#5548) 2023-10-22 12:05:20 +03:00
ocaml refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
ocaml_interface feat: add indents for ocaml and ocaml interface (#4725) 2023-05-01 20:42:21 +09:00
ocamllex refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
odin refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
pascal chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
passwd feat: add passwd 2023-02-28 17:48:11 -05:00
pem refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
perl feat: bump perl 2023-10-29 20:56:01 +01:00
php refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
phpdoc fix(phpdoc): disable spell checking of attribute names (#5015) 2023-10-22 10:21:51 +09:00
pioasm feat: @spell on comments 2023-09-12 17:34:58 +02:00
po refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
pod feat(pod): add tree-sitter-perl org's POD parser 2023-10-21 14:41:22 -04:00
poe_filter chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
pony refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
prisma feat(prisma): folding queries (#5541) 2023-10-21 12:04:23 +09:00
promql refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
proto feat!: change upstream proto parser and improve highlights 2023-08-02 13:54:53 -04:00
prql chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
psv feat: add CSV, PSV, & TSV 2023-08-17 11:15:54 -04:00
pug chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
puppet refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
pymanifest refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
python refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
ql chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
qmldir chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
qmljs feat: @spell on comments 2023-09-12 17:34:58 +02:00
query feat(query): use @function.call for predicate 2023-10-03 17:54:10 +02:00
r refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
racket refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
rasi refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
re2c refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
regex chore: update Regex from upstream 2023-07-12 15:51:15 +02:00
rego feat: @spell on comments 2023-09-12 17:34:58 +02:00
requirements refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
rnoweb refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
robot feat: @spell on comments 2023-09-12 17:34:58 +02:00
ron refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
rst refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
ruby refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
rust fix(rust): add foreign_mod_item to folds 2023-10-30 04:30:30 -04:00
scala fix(scala): add for_expression locals 2023-10-15 18:43:34 +00:00
scfg chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
scheme chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
scss feat: @spell on comments 2023-09-12 17:34:58 +02:00
slint feat: @spell on comments 2023-09-12 17:34:58 +02:00
smali refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
smithy feat: add @comment.documentation where applicable 2023-03-05 17:15:32 -05:00
snakemake feat: add Snakemake 2023-09-12 21:29:22 -04:00
solidity refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
soql feat: add parsers and queries for apex, sosl, soql (#5396) 2023-09-17 20:00:21 +03:00
sosl feat: add parsers and queries for apex, sosl, soql (#5396) 2023-09-17 20:00:21 +03:00
sparql feat: @spell on comments 2023-09-12 17:34:58 +02:00
sql highlights(sql): add t-sql specific data types (#5311) 2023-08-25 09:23:38 +09:00
squirrel chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
ssh_config refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
starlark refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
strace refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
supercollider feat: @spell on comments 2023-09-12 17:34:58 +02:00
surface feat: @spell on comments 2023-09-12 17:34:58 +02:00
svelte refactor: remove include-children from queries (#5226) 2023-09-12 08:36:50 +02:00
swift feat(swift): update parser and queries 2023-09-10 19:38:36 +02:00
sxhkdrc feat: @spell on comments 2023-09-12 17:34:58 +02:00
systemtap chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
t32 fix(t32): update indent queries & test 2023-09-14 20:07:02 +02:00
tablegen refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
teal refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
terraform needed for terraform conditionals 2023-02-14 10:09:09 -08:00
textproto feat(textproto): Add Textproto parser and queries (#5402) 2023-09-19 01:26:02 +09:00
thrift refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
tiger feat: @spell on comments 2023-09-12 17:34:58 +02:00
tlaplus feat: @spell on comments 2023-09-12 17:34:58 +02:00
todotxt parsers: Add todotxt parser 2022-02-28 22:46:47 +01:00
toml refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
tsv feat: add CSV, PSV, & TSV 2023-08-17 11:15:54 -04:00
tsx injections(jsx): highlight <style jsx> as css 2022-08-26 12:05:02 -07:00
turtle feat: @spell on comments 2023-09-12 17:34:58 +02:00
twig chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
typescript fix(typescript): do not highlight undefined as variable 2023-10-15 13:15:22 +03:00
typoscript feat(typoscript) Added parser and queries for TypoScript (#5564) 2023-10-24 07:48:33 +00:00
ungrammar refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
unison fix(unison): improve highlight queries 2023-10-15 18:36:15 +00:00
usd Added USD as a language + some queries 2023-05-15 09:28:11 +02:00
uxntal chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
v refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
vala perf: remove match where possible 2023-04-21 18:24:17 -04:00
verilog refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
vhs feat: vhs (.tape) support (#3726) 2022-11-13 12:33:54 +01:00
vim feat(vim): add the builtin sign command (#5322) 2023-08-27 10:43:10 +03:00
vimdoc chore(injections)!: update injection syntax to 0.9 2023-08-12 17:34:15 +02:00
vue refactor: remove include-children from queries (#5226) 2023-09-12 08:36:50 +02:00
wgsl refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
wgsl_bevy highlights(wgsl_bevy): add support for naga_oil features 2023-07-25 22:22:35 +02:00
wing chore(wing): update queries from upstream (#5549) 2023-10-20 14:02:49 +00:00
xml feat: add xml & dtd parsers 2023-08-13 10:34:57 +03:00
yaml refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
yang feat: @spell on comments 2023-09-12 17:34:58 +02:00
yuck refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00
zig refactor: Remove all (ERROR) @error captures 2023-10-25 18:18:50 +02:00