Commit graph

5890 commits

Author SHA1 Message Date
nvim-treesitter-bot[bot]
feab1f19f8 bot(lockfile): update asm, jinja, jinja_inline, vhdl 2025-03-10 06:47:46 +00:00
Christian Clason
afe977dadd feat(roc)!: bump parser and queries
Adapt to https://github.com/faldor20/tree-sitter-roc/pull/30

Also synchronize queries with upstream and add indents
2025-03-09 19:26:47 +01:00
nvim-treesitter-bot[bot]
f06adcf572 bot(readme): update 2025-03-09 17:56:04 +00:00
uncenter
f840ab9f72
feat(tera): add parser and queries 2025-03-09 18:44:59 +01:00
nvim-treesitter-bot[bot]
59573f9616 bot(lockfile): update ocaml, ocaml_interface, ocamllex 2025-03-09 10:06:14 +00:00
may
ffd284c470 fix(rust): inject regex into RegexBuilder instead of ByteRegexBuilder 2025-03-08 20:13:17 +01:00
ginnyTheCat
f0c17dc859
fix(rust): inject html and json in macro invocations (#7715) 2025-03-08 17:49:06 +00:00
nvim-treesitter-bot[bot]
ee8e149a4f bot(lockfile): update ocaml, ocaml_interface 2025-03-08 06:49:54 +00:00
nvim-treesitter-bot[bot]
71ac531a63 bot(lockfile): update gleam, rust 2025-03-07 06:56:26 +00:00
Louis Pilfold
f22181a62c
feat(gleam): "echo" keyword (#7710) 2025-03-06 10:27:20 -08:00
patricorgi
16e8e19771
feat(snakemake): add rules to locals (#7698) 2025-03-06 18:47:57 +01:00
nvim-treesitter-bot[bot]
794cf2f630 bot(lockfile): update angular, meson, mlir, rust, scala, unison 2025-03-06 06:54:36 +00:00
nvim-treesitter-bot[bot]
55c5c762fe bot(lockfile): update dtd, mlir, slim, xml 2025-03-05 06:53:31 +00:00
Riley Bruins
2b0760dca2 feat(jsx): commentstring query 2025-03-04 09:49:57 +01:00
nvim-treesitter-bot[bot]
a5a2845a86 bot(lockfile): update cmake, elixir, ocaml, ocaml_interface, powershell, requirements, superhtml, ziggy, ziggy_schema 2025-03-04 08:36:41 +00:00
Christian Clason
c641ca8e05 ci(update): block rescript (ABI 15) 2025-03-04 09:25:23 +01:00
Riley Bruins
1adcd57119 feat(markdown): fold sublists 2025-03-03 09:44:46 +01:00
nvim-treesitter-bot[bot]
bf6028e00c bot(lockfile): update cmake, elixir, fortran, fsharp, rust, vhdl 2025-03-03 06:58:07 +00:00
nvim-treesitter-bot[bot]
186f35e168 bot(lockfile): update cmake, jinja, jinja_inline, nu 2025-03-02 10:30:19 +00:00
Christian Clason
8bf733ccce ci(update): block templ (ABI 15) 2025-03-02 11:16:59 +01:00
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