Commit Graph

62 Commits

Author SHA1 Message Date
Alexei Mozaidze
21da8ac251 fix(fennel): highlight $ in multi-symbol context properly
Highlights the dollar symbol properly in multi-symbol contexts like
`$.some.properties`
2025-08-12 10:25:22 +02:00
Caleb White
42ea539243 feat(php): update php and php_only parsers to v0.24.0 2025-08-12 10:25:14 +02:00
涵曦
13e3ce3bf4 feat(sproto): add parser 2025-08-12 10:24:58 +02:00
Riley Bruins
4eb35c0344 feat(gdscript): misc operators, semicolon highlight 2025-08-06 18:49:54 +02:00
Robert Muir
4d9916e477 fix(jinja_inline): fix crashing query pattern
If jinja_inline parser is regenerated, then this pattern hits an
"impossible" assert in tree-sitter query processing.
2025-08-05 20:06:49 +02:00
Robert Muir
a4fa3e2d18 Revert "fix(jinja): remove crashing pattern"
This reverts commit 8c8742871a.
2025-08-05 20:06:49 +02:00
Christian Clason
05f2910355 feat(systemverilog)!: update parser and queries
Breaking changes:
1. `(comment)` node split into `(one_line_comment)` and
   `(block_comment)`
2. named `(directive_foo)` nodes replaced by anonymous `"'foo"`
   (with backtick!) nodes -- but not consistently
2025-08-05 20:06:15 +02:00
Riley Bruins
40cca05b40 fix(c, ecma): remove invalid predicate parameters
These are not valid named nodes in their respective languages.
2025-07-22 09:52:32 +02:00
Christian Clason
8c8742871a fix(jinja): remove crashing pattern
https://github.com/cathaysia/tree-sitter-jinja/issues/37
2025-07-21 11:21:52 +02:00
NullVoxPopuli
6b3bf164b2 feat(glimmer): add fold queries (#8020) 2025-07-21 09:40:37 +02:00
Christian Clason
f14b356d54 feat(chatito)!: update parser and queries
node `(eq)` is replaced by field `eq: _`
2025-07-20 11:53:37 +02:00
Robert Muir
20d77c2e5b fix(jinja): assign highlights to all variables and functions
The majority of jinja variables aren't assigned any highlights at all.
Assign @variable to all identifiers.

Jinja filters without parameters are not highlighted as functions: add a
query for these.

Refine the existing @variable.member to only capture identifiers instead
of broader nodes.
2025-07-19 18:25:47 +02:00
Christian Clason
1e3b7562c2 feat(wit)!: update parser and queries 2025-07-19 15:19:50 +02:00
Riley Bruins
fba060b623 feat(pkl): add parser and queries (#8011) 2025-07-19 11:36:38 +02:00
Alan Russell
61ec748ef7 feat(groq): add parser and queries (#8008) 2025-07-18 18:04:42 +02:00
Riley Bruins
96f51adf71 fix(c_sharp): "<", ">" in type param lists are brackets (#8003) 2025-07-15 00:55:29 +00:00
Riley Bruins
6c2234f7ba feat(c_sharp): highlight :: (#8002) 2025-07-14 17:48:23 -07:00
Caleb White
c9e4edc127 feat(blade): update blade parser and queries 2025-07-11 17:34:30 +02:00
Christian Clason
4eb12d7a1f feat(ziggy,ziggy-schema): update parser and queries
Breaking change: ziggy-schema removed "map" node
2025-07-09 10:30:54 +02:00
Christian Clason
4400990e73 feat(vim): highlight "trim" in script heredocs
Allow the optional "trim", as documented in ":help :lua-heredoc".
2025-07-07 12:22:10 +02:00
Christian Clason
0d32ec3c3e feat(latex)!: update parser and queries
Breaking change: `label_definition`, `label_text` patterns
2025-07-05 17:46:07 +02:00
Igor
dafb3cb3cb fix(http): prefer folding requests 2025-07-04 08:56:45 +02:00
Riley Bruins
04935dec42 fix: remove import references to jsx/locals.scm
There are no JSX locals (yet...?)
2025-07-03 18:33:31 +02:00
Baruch Even
1f069f1bc6 feat(D): highlight (string) etc. as @keyword.type (#7978)
Co-authored-by: Baruch Even <baruch@weka.io>
2025-06-29 16:10:29 +00:00
przepompownia
dbb63c8b7a feat(php): fold match_expression 2025-06-29 15:59:54 +02:00
przepompownia
4b2e9b049c feat(php): fold array_creation_expression 2025-06-29 15:17:01 +02:00
Eric Mrak
7110df63e1 feat(fish): more builtin commands and variables (#7972)
builtin commands:
* abbr
* path

builtin variables:
* fish_cursor_*
2025-06-26 09:04:48 +02:00
Christian Clason
1181cd9a25 feat(verilog)!: rename to systemverilog
Grammar name was changed to coincide with repository name
2025-06-24 10:07:36 +02:00
Christian Clason
13ddd4d752 feat(swift)!: update parser and queries 2025-06-24 10:07:24 +02:00
Christian Clason
8867a9d6bf feat(powershell)!: update parser and queries
removed nodes: `"class"`, `"enum"`
2025-06-22 15:51:32 +02:00
guilhas07
2a677dede2 feat(vue): add template commentstring metadata 2025-06-18 18:34:40 +02:00
Christian Clason
7e6fbcaa20 feat(purescript)!: update parser and queries
removed note: `(constructor_operator)`
2025-06-17 15:55:21 +02:00
uncenter
a64ef334be fix(css): universal selector "*" has precedence over operator (#7948) 2025-06-14 11:01:04 +02:00
Igor
c29969e8ef feat(dot): fold queries 2025-06-13 09:24:28 +02:00
Éric NICOLAS
9c03c835fb fix(bash): highlight shebang also when spaced
This commit aligns the shebang highlighting in bash syntax to what the
Linux kernel will recognise as a valid shebang construct.

In summary, the kernel will accept both headers:

    #!/usr/bin/env lua
    #! /usr/bin/env lua

The second one is quite prominently used throughout documentation
online, such as on Wikipedia's page for Shebang (Unix) [1].

Some sources are adamant it wouldn't be supported at a kernel level, but
it looks to me, upon closer inspection of the current kernel code [2],
that it is indeed quite evidently valid.  It'll simply skip over to the
first character that's neither a space 0x20 nor a tab 0x09.

[1] https://en.wikipedia.org/wiki/Shebang_(Unix)
[2] ec7714e494/fs/binfmt_script.c (L44-L71)
2025-06-09 10:43:31 +02:00
Jaehwang Jung
c48b37a3c9 feat(cpp): highlight template method call 2025-06-07 10:28:49 +02:00
Christian Clason
faf63903ff fix(ipkg)!: remove parser and queries
grammar repo is 404 (user removed) and no forks exist
2025-06-06 16:59:44 +02:00
Omar Valdez
27d0bef81e feat(desktop): update parser and queries 2025-06-06 09:07:06 +02:00
Christian Clason
27b0bd487c feat(nickel)!: update parser and queries
Breaking change: `(record_field)` -> `field_decl`
2025-06-02 13:30:07 +02:00
Éric NICOLAS
9a51f860c1 fix(git_config): match lowercase Git config vars
Git config's sections, variable names, and (sometimes) subsections are
case-insensitive.  This commit proposes to match the full lowercase
variants in addition to the non-normalised, lowerCamelCase ones.

See `git help config`
2025-05-31 10:12:23 +02:00
Christian Buttner
c59004f1e0 feat: add c3 (#7891) 2025-05-28 23:04:10 +02:00
Noah Bogart
71d2fd1bd4 fix(just): do not restrict @function.call to explicit list (#7905) 2025-05-28 22:44:34 +02:00
Christian Clason
024e6c5e46 fix(queries): fix rebase errors on main 2025-05-28 14:35:36 +02:00
Marc Jakobi
dd63d7141f fix(haskell): properly set inline-python injection language 2025-05-27 14:17:05 +02:00
Christian Clason
0d60a09252 fix(typst): restore missing injections 2025-05-25 10:51:44 +02:00
Omar Valdez
652831b231 feat(bash): highlight variable argument for printf -v 2025-05-24 11:39:59 +02:00
Yorick Peterse
d08cf75e1b feat(inko): add scoping to the locals queries
This way tooling that makes use of these queries (e.g. snacks.nvim) is
aware of the scoping of Inko types and methods.
2025-05-22 07:47:03 +02:00
Riley Bruins
168fe16cdd fix: tidy up some query mistakes
Revealed by the capture-less patterns lint
2025-05-18 09:46:27 +02:00
Christian Clason
864e75a85d fix(c,cpp,fsharp,idl,powershell,sql,systemtap): remove unneeded escapes 2025-05-13 18:12:58 +02:00
Christian Clason
25f08b82af fix(hcl): remove unnecessary escapes 2025-05-13 18:12:58 +02:00