Commit Graph

6263 Commits

Author SHA1 Message Date
Christian Clason
74b119812e feat(gleam)!: update parser and queries
Breaking change: `(bit_string_*)` renamed to `(bit_array_*)`
2025-12-13 14:28:41 +01:00
Christian Clason
74d3999522 feat(parsers): update fortran, gotmpl, helm, idl, mlir, pkl, query, racket, scheme, slint, vhdl, zsh 2025-12-13 14:21:32 +01:00
Christian Clason
2979e048b3 ci(test): bump tree-sitter/setup-actions to v2 2025-12-11 10:57:07 +01:00
Marc Jakobi
b6271b678e feat(haskell): injection for morpheus-graphql-client quasiquotes 2025-12-09 11:02:20 +01:00
Riad
186810d6ad feat(gdscript): update builtin highlights
Added all builtin annotations, constants, methods
and types as of godot commit : 10c7cb8
2025-12-09 11:01:36 +01:00
adaitche
02693ce64c feat(sql): improve @type capture (#8315)
Problem: `@type` currently captures function calls but fails to
capture CTE names.

Solution: Don't capture types in invocations. Add pattern for `cte`.
2025-12-09 10:53:37 +01:00
Christian Clason
a98a740c55 feat(parsers): update brightscript, desktop, gotmpl, helm, ini, javadoc, mlir, nu, powershell, slint, vimdoc, xresources 2025-12-09 10:19:54 +01:00
Omar Valdez
f47f549f74 feat(bash): highlight arguments of trap and kill builtin commands 2025-12-08 14:47:59 +01:00
Omar Valdez
93537d6998 feat(bash): remove unnecessary captures
- Bash does not have boolean values and the builtin `true`
  and `false` commands are already covered by another capture.
- The grammar has a `number` node and it's already captured.
2025-12-08 13:08:03 +01:00
Cameron
bfc6c99540 fix(ruby): highlighting for string-literal symbols (#8317) 2025-12-08 11:27:09 +01:00
Yorick Peterse
20db421f5f feat(inko): update to v0.4.0 (#8327)
This changes the structure of "if" expressions so the queries for
nvim-treesitter-textobjects can be changed as to not cause any crashes.
2025-12-06 22:38:22 +01:00
Christian Clason
9d47b2558b feat(json): add support for jsonc files 2025-12-06 18:10:39 +01:00
Christian Clason
d2350758b3 feat(parsers)!: remove gitlab-hosted blueprint, fusion, jsonc
Problem: Gitlab has too frequent outages, which break automation.

Solution: Drop all Gitlab-hosted parsers (two of which have been
unmaintained for years).
2025-12-06 18:10:39 +01:00
Christian Clason
d72fa25b54 feat(fortran)!: update parser and queries
Breaking change: `(do_loop_statement)` renamed to `(do_loop)`
2025-12-06 14:13:26 +01:00
Christian Clason
41913a8d44 feat(bash): update parser
Breaking change: removed double parenthesis as valid opening to
arithmetic expansion. (Only `$((` is allowed according to the manual.)
2025-12-06 14:04:19 +01:00
Christian Clason
596923959a fix(inko): downgrade parser
Problem: The commit fc37d05c36 broke parsing a textobjects query.

Solution: Downgrade parser to previous commit and pin it (until we can move it to tier 1).
2025-12-06 13:29:48 +01:00
Christian Clason
6f2121231a feat(parsers): update angular, c3, desktop, elm, forth, inko, mlir, nix, pkl, powershell, templ, xresources 2025-12-06 13:09:06 +01:00
Christian Clason
e0eec76dad fix(lua): fix some emmyluals warnings 2025-12-06 11:16:30 +01:00
Dennis van den Berg
75797cdd8a feat(angular): add style_unit highlighting(#8312) 2025-12-04 10:42:01 +01:00
Alexei Mozaidze
857fb97bb6 fix(fennel): highlight $[1-9] in multi-symbol context properly
Highlights the dollar symbol properly in multi-symbol contexts, like `$3.some.properties`.
There was already a fix for a similar issue on #8067, but it only addressed `$.some.properties`, but not the variant with the argument number in it.
2025-12-03 17:49:36 +01:00
Gabriel Holodak
c5623d3486 docs: document setting foldmethod alongside foldexpr (#8187) 2025-12-02 17:15:52 -08:00
nsfisis
e527584cf8 feat(vhs): update options list (#8309) 2025-12-02 12:03:33 -08:00
George Harker
00c906abb9 fix(zsh): update posix shell variables 2025-12-01 08:46:21 +01:00
Christian Clason
17885756e6 feat(parsers): update angular, c3, desktop, editorconfig, elm, gdshader, gleam, haskell, idl, php, php_only, pkl, query, readline, vimdoc, xresources 2025-11-27 18:54:20 +01:00
Tayfun Bocek
d56ed0f7f9 feat(gdshader): update highlight queries (#8299)
* use uniform scope node instead of literal matching

This avoids the need to refactor if other scope types are added. Maybe
helps performance as well.

* add method expression highlight
2025-11-27 10:35:21 +01:00
Christian Clason
c5871d9d87 fix(perl): correct use of supertypes 2025-11-25 10:40:58 +01:00
Christian Clason
d6ebbd5039 fix(haskell): correct use of supertypes in (decl) patterns
Problem: These patterns were impossible, since children need to be children of
every subtype of a supertype to be captured in this way. As subtypes
could appear as children themselves, the query code silently "skipped
over" the supertype restriction in the pattern. This was fixed in
tree-sitter v0.26.0, which now (correctly) flags these patterns as
"impossible".

Solution: Add the appropriate child nodes explicitly.
2025-11-25 10:28:33 +01:00
Christian Clason
3bbae7b32e feat(parsers): update angular, ini, json5, koto, matlab, mlir, nix, pkl, query, sql, t32, vimdoc, zsh 2025-11-23 13:31:11 +01:00
Christian Clason
bb83a67612 fix(fsharp): correct use of supertypes in (_type) patterns
Problem: These patterns were impossible, since children need to be children of
every subtype of a supertype to be captured in this way. As subtypes
could appear as children themselves, the query code silently "skipped
over" the supertype restriction in the pattern. This was fixed in
tree-sitter v0.26.0, which now (correctly) flags these patterns as
"impossible".

Solution: Add the appropriate child nodes explicitly.
2025-11-19 11:03:04 +01:00
Christian Clason
c682a239a9 feat(parsers): update asm, c_sharp, csv, desktop, gdshader, gotmpl, haskell, heex, helm, javadoc, matlab, mlir, pkl, psv, t32, tsv, xresources 2025-11-17 11:17:13 +01:00
Christian Clason
3a48d16c95 fix(ziggy): mark as unmaintained 2025-11-17 11:12:09 +01:00
Mikhail Katychev
69c76488f7 feat(wit)! update parser and queries to 1.2.0 (#8199) 2025-11-17 10:06:00 +00:00
Christian Clason
0cfa599474 chore: remove format-queries script
The source of truth for formatting (according to make formatquery and
 CI) is now ts_query_ls, so remove the no longer required script to
 prevent divergence and bitrotting.
2025-11-14 22:58:12 +01:00
Tomohiro Hashidate
2696fb8326 feat(ruby): update queries to support rbs-inline syntax (#8282) 2025-11-14 07:04:54 -08:00
George Harker
2144e88dac feat(zsh): bump parser, disallow injections for regex with expansion 2025-11-13 15:20:34 -08:00
Derek Stride
0427eeb385 feat(sql): update parser, highlights (#8272) 2025-11-13 15:15:19 -08:00
Christoph Sax
b50774079a feat(t32)!: update parser and queries (#8276)
`trace32_hll_variable` has been removed from the grammar. The
queries are now capturing `symbol` instead. `symbol` is highlighted
as variable or constant.
2025-11-12 10:06:04 +01:00
Tayfun Bocek
f46e3a09bd fix(gdshader): add missing keyword to group (#8274) 2025-11-10 23:21:29 -08:00
Christian Clason
0a6817bcbb feat(haskell): switch to maintained fork 2025-11-10 23:15:20 +01:00
Christian Clason
81aec1e45d ci: add check for downstream queries
Problem: Parser updates may break downstream queries.

Solution: Add workflow that clones and validates queries in

* https://github.com/nvim-treesitter/nvim-treesitter-textobjects#main
* https://github.com/nvim-treesitter/nvim-treesitter-context

on changes to the parsers.lua table. (Workflow should not be required to
pass; the purpose is to give a heads-up that follow-up PRs are needed.)
2025-11-10 11:32:04 +01:00
Christian Clason
d97d226cfd feat(parsers): update asm, devicetree, gdshader, hack, hyprlang, koto, matlab, mlir, nix, ocamllex, pkl, sql, templ, zsh 2025-11-08 11:55:40 +01:00
Jaehwang Jung
5eca61b32a fix(python): nospell for interpolation 2025-11-06 12:35:06 +01:00
George Harker
1ddb266477 feat(parsers): add zsh support (#8240)
Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Co-authored-by: Tayfun Bocek <tayfunbocek@live.ca>
2025-11-05 20:13:53 -08:00
Alexey Svirshchevskiy
896e92a7f6 fix(typescript): support type param for styled components (#8066) 2025-11-04 20:07:27 -08:00
Igor Lacerda
53049d6678 feat(ecma): variable definition from object destructure (#8233) 2025-11-04 20:03:42 -08:00
Izzy Muerte
65a266bf69 fix(xml): remove CDATA injection
This change does not break existing injections that currently ship with nvim-treesitter, but instead allows additional injections to be defined by users, like those found in the Max/MSP Jitter XML Shader format.
2025-11-03 09:37:30 +01:00
Christian Clason
55820833a3 feat(parsers): update angular, desktop, earthfile, editorconfig, gdshader, javadoc, matlab, mlir, pkl, powershell, xresources 2025-11-02 10:47:45 +01:00
Tayfun Bocek
64f4755b9d feat!(gdshader): replace gdshader parser and queries (#8244)
Switch parser to https://github.com/airblast-dev/tree-sitter-gdshader
2025-10-30 14:59:19 +01:00
Christian Clason
fd2880e8bc feat(install): remove node requirement
* supported parsers _must_ commit at least `grammar.json`
* set `TREE_SITTER_JS_RUNTIME=native` when generating parser to use
  built-in quickjs instead of node (requires tree-sitter 0.26)
2025-10-30 08:36:00 +01:00
Christian Clason
a3b489680f feat(scfg): update parser 2025-10-30 08:36:00 +01:00