Commit graph

5870 commits

Author SHA1 Message Date
nvim-treesitter-bot[bot]
c1efc9a905 bot(lockfile): update dart, djot, meson, mlir 2025-03-01 11:05:56 +00:00
Christian Clason
f56d2f6765 ci(update): block typespec (ABI 15) 2025-03-01 11:55:29 +01:00
Christian Clason
f37b1668a6 ci(update): block verilog (ABI 15) 2025-03-01 11:15:34 +01:00
nvim-treesitter-bot[bot]
99487eb34a bot(lockfile): update php, php_only, rust, v 2025-02-28 08:37:39 +00:00
nvim-treesitter-bot[bot]
8bc635a25f bot(readme): update 2025-02-27 09:16:43 +00:00
Bert Baron
376a46ccec
feat(kdl): parser and queries (#7657) 2025-02-27 09:54:26 +01:00
Paul Hansen
28f76678ca
fix(kdl): highlight query order (#7688)
This just fixes the highlighting queries so everything
isn't highlighted as a variable due to the order of the queries
meaning several queries were ignored.

I also changed the node names to be highlighted as `@tag` since KDL is an
xml-like format so `@tag` seemed more appropriate than type and it differentiates it
from the type annotations.

This does NOT update to the latest KDL version 2, that would need
grammar changes. It does "mostly" work with
KDL 2 though (notably unquoted strings seem to throw the grammar off.).
2025-02-27 09:53:58 +01:00
Omar Valdez
00e797ea25 feat(typescript): highlight abstract methods 2025-02-27 09:53:22 +01:00
Andreas Hartmann
a83032cee1 feat(make): fold define statements. 2025-02-27 09:53:09 +01:00
nvim-treesitter-bot[bot]
89eed3572d bot(lockfile): update fortran, nix, tlaplus 2025-02-27 06:54:26 +00:00
Raafat Turki
8f87d28442
feat(sql): add folds (#7686) 2025-02-26 17:36:48 +01:00
Caleb White
081a99b3be feat(php): add support for new relative_name node 2025-02-26 17:01:57 +01:00
Christian Clason
93ce9feb4f feat(markdown): completely conceal codeblock fences on nightly
Required to make https://github.com/neovim/neovim/pull/31324 work with
nvim-treesitter.
2025-02-25 14:07:31 +01:00
Alex Manning
f0ff9f0e5d fix(gleam): indent on unqualified import rather than import 2025-02-25 11:20:39 +01:00
Andreas Hartmann
3b013b9ed4 feat(typst): add more folds
for the following language constructs:

- 'for' blocks
- 'if/else' expressions
- raw markup blocks (```)
- `content`
2025-02-25 11:18:08 +01:00
Omar Valdez
9fcb3f7aa2 feat(just): improve attribute highlights
- Default attribute highlight
- Highlight more builtin attributes
- Highlight special attribute arguments
2025-02-25 10:47:31 +01:00
nvim-treesitter-bot[bot]
36c78ee572 bot(lockfile): update styled 2025-02-25 08:57:11 +00:00
Christian Clason
225419160b ci(update): block git_config (ABI 15) 2025-02-25 09:46:10 +01:00
nvim-treesitter-bot[bot]
e6d02ec9ef bot(lockfile): update nu, rst, swift 2025-02-24 06:54:05 +00:00
nvim-treesitter-bot[bot]
f2bd62c656 bot(lockfile): update nu, vhdl 2025-02-23 11:14:03 +00:00
Christian Clason
c08aa2fe3f ci(update): block devicetree (ABI 15) 2025-02-23 12:01:29 +01:00
nvim-treesitter-bot[bot]
5774e7d3da bot(lockfile): update enforce, liquid, mlir, nix, nu 2025-02-22 06:54:10 +00:00
Yorick Peterse
d0ba96c3dc feat(inko): add support for "for" loops
These will be introduced as part of the 0.19.0 release. This commit
updates the lockfile as well as the relevant queries to accommodate the
new expression and "in" now being a keyword.
2025-02-21 21:37:27 +01:00
Hank Jackson
4cf2da5c3a
feat(liquid): capture (front_matter) and inject yaml (#7672) 2025-02-21 09:29:03 +01:00
nvim-treesitter-bot[bot]
0cfe75d2a2 bot(lockfile): update liquid, swift 2025-02-21 06:53:25 +00:00
Philip Zander
bf18d4dc8d feat(pascal): Add asm language injection for Pascal 2025-02-20 18:19:40 +01:00
Daniil Leontev
d2ff400641
feat(promql): do not use regex for string labels (#7669)
In Prometheus, label values are treated as strings when used with the
`=` and `!=` operators, and as regular expressions when used with the
`=~` and `!~` operators.

Injecting and then highlighting all label values as regex leads to a
situation where entirely valid **string** label values containing regex
special characters are mistakenly parsed and highlighted as regex. This
results in syntax errors, causing labels to be highlighted incorrectly.

For example, in `foo{bar=~"[a-z]{1,3}"}`, `{` and `}` are regex special
characters, so regex highlighting is expected. However, in
`foo{path="/foo/{id}"}`, `{` and `}` are just part of the string and
have no special meaning, so the whole value should be highlighted as a
string.
2025-02-20 12:17:32 +01:00
nvim-treesitter-bot[bot]
a15dd9280f bot(lockfile): update pascal, v 2025-02-20 09:37:01 +00:00
Robert Muir
cb8e810a1e feat(java): add injections for markdown documentation comments
Since Java 23, java documentation supports markdown.
It is supported by a '///' line comment followed by mandatory
white space: https://openjdk.org/jeps/467
2025-02-20 00:22:01 +01:00
Chris Grieser
36bbf51842
feat(yaml): capture "boolean strings" (#7512)
See for example: https://www.bram.us/2022/01/11/yaml-the-norway-problem/
values based on: https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.truthy

Parser targets YAML 1.2, which has stricter promotions.
2025-02-19 18:37:18 +01:00
Michael Parque
c32b59a8fd
fix(css): do not fold top-level blocks (#7562)
Using (block) makes the fold behavior only work on the line that the
block starts not the start line of the statement, which is unideal when
the preceding statement spans multiple lines. instead, use all top-level
statements explicitly from https://github.com/tree-sitter/tree-sitter-css/blob/master/grammar.js
2025-02-19 18:12:46 +01:00
Yuki Ito
e5588abcfa
feat(gomod): support tool directive (#7649) 2025-02-19 17:28:07 +01:00
Christian Clason
b9a3588ee8 fix(earthfile): adapt to new default branch (with external scanner) 2025-02-19 15:02:54 +01:00
nvim-treesitter-bot[bot]
2c4c8c10ed bot(lockfile): update mlir, swift 2025-02-19 09:57:11 +00:00
Christian Clason
1a6e42bb8c ci(update): block nickel (ABI 15) 2025-02-18 09:16:17 +00:00
nvim-treesitter-bot[bot]
8c41b8b366 bot(lockfile): update fsharp, razor 2025-02-18 09:16:17 +00:00
Yorick Peterse
95648f9154
feat(inko)!: remove the "class" keyword (#7663)
This keyword is deprecated as of 0.18.1 (released on February 12, 2025)
and is being removed as part of the upcoming 0.19.0 release.

BREAKING CHANGE: replace with `type`.
2025-02-17 23:54:32 +01:00
zc he
2cade9e3d1
feat(nu): new attribute syntax and add folds.scm (#7650) 2025-02-16 16:47:42 +01:00
Christian Clason
b08ae25c47 feat(parsers)!: drop org
The parser has neither queries nor a listed maintainer here and hasn't
seen updates in two years.
2025-02-16 13:53:28 +01:00
nvim-treesitter-bot[bot]
38e46a6d7a bot(lockfile): update v 2025-02-16 06:49:56 +00:00
nvim-treesitter-bot[bot]
00a513f87e bot(lockfile): update c_sharp, enforce, erlang, mlir, nu 2025-02-15 09:39:43 +00:00
nvim-treesitter-bot[bot]
80e6de9d24 bot(lockfile): update julia, vhs 2025-02-14 06:52:41 +00:00
nvim-treesitter-bot[bot]
6d957c22cb bot(lockfile): update apex, sflog, soql, sosl, superhtml 2025-02-13 06:54:33 +00:00
nvim-treesitter-bot[bot]
e411cf2c8a bot(lockfile): update apex, perl, sflog, soql, sosl 2025-02-12 08:30:25 +00:00
nvim-treesitter-bot[bot]
6108ba7a13 bot(lockfile): update typst, v 2025-02-11 08:30:11 +00:00
ginnyTheCat
a840137349 feat(sparql): add regex injection 2025-02-10 09:32:30 +01:00
Omar Valdez
6402fcb1e0 feat(typescript): highlight awaited functions with type parameters 2025-02-10 09:32:11 +01:00
nvim-treesitter-bot[bot]
b39070f94d bot(lockfile): update c_sharp, http, idl, perl 2025-02-10 06:53:35 +00:00
Christian Clason
da89532f03 ci(update): block t32 (ABI 15) 2025-02-09 12:15:07 +01:00
nvim-treesitter-bot[bot]
119a6f9e25 bot(lockfile): update c, mlir, printf 2025-02-09 06:51:13 +00:00