Commit graph

2819 commits

Author SHA1 Message Date
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
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
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
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
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]
48f7ce34ef bot(lockfile): update erlang, gleam, jinja, jinja_inline, ziggy, ziggy_schema 2025-02-08 10:01:37 +00:00
loongtao.zhang
cbd48fac13
feat(jinja): add parser and queries (#7573)
Signed-off-by: loongtao.zhang <loongtao.zhang@outlook.com>
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
2025-02-08 10:38:50 +01:00
simonvic
e8ccc339a3
feat(enforce): add parser and queries (#7626) 2025-02-08 10:38:13 +01:00
Omar Valdez
6bc2c0fde8 feat(hyprlang): bash injection for bindings with descriptions 2025-02-08 10:11:56 +01:00
zc he
9e0b5e7f0d
feat(nu)!: added some new operators, removed deprecated keyword register (#7620) 2025-02-05 13:58:55 +01:00
Kieran Siek
55ae574195 Fix panic!, assert*!, and dbg! macro queries. 2025-02-04 23:49:34 +01:00
Riley Bruins
73b68cb943 feat(query): highlights for dot-prefixed predicates 2025-02-02 17:53:25 +01:00
Riley Bruins
ca0e04ac31 feat(query): highlights for missing nodes 2025-02-02 17:48:21 +01:00
Dimitris Dimitropoulos
4988b70680
feat(typst): capture multilevel headings (#7595) 2025-02-01 20:45:10 +01:00
Tristan Knight
39bf51ff68
feat(razor): add parser and queries (#7545) 2025-02-01 20:06:26 +01:00
Omar Valdez
110bdf91e3
fix(typescript): don't highlight default values as parameters (#7599) 2025-01-30 18:32:50 +01:00
Jonas Hietala
ffa526e5aa
feat(djot): add latex injection (#7603) 2025-01-30 12:22:43 +01:00
Jonas Hietala
80c7af6d04
feat(djot)!: update to breaking parser changes (#7594) 2025-01-28 21:58:52 +01:00
Minh Tran
f3d7c0dafc
fix(verilog): capture (non_integer_type) as @type.builtin 2025-01-25 09:52:24 +01:00
Baraa Homsi
4862ab0aca
fix(nix): shorter sub-attribute function highlight query (#7579) 2025-01-22 07:58:01 -08:00
Théo Reichel
1c67567464
feat(slim): add parser and queries (#7425) 2025-01-21 09:25:08 +01:00
Omar Valdez
7edaaf9887
feat(css): highlight @keyframes name (#7569) 2025-01-19 19:29:24 -08:00
Baraa Homsi
4d93fae5a3
fix(nix): highlight functions when part of a set (#7547)
* feat(nix): Fix function highlights when part of a set

* fix(nix): Highlight only the last identifier node in functions

* fix(nix): Higher precedence for builtins compared to functions and member vars
2025-01-19 19:03:13 -08:00
Omar Valdez
1c77042243 feat(hyprlang): bash injection for hypridle variables 2025-01-19 21:28:06 -05:00
Omar Valdez
87b1f25098 feat(hyprlang): add missing highlights 2025-01-19 21:07:52 +01:00
Omar Valdez
645d14f40f feat(hyprlang): bash injections for exec keybindings 2025-01-19 12:29:44 -05:00
Christian Clason
fd59f98441 fix(idris): correct keyword captures
Fixup for #7274
2025-01-16 17:45:38 +01:00
Serhii Khoma
8758abeb4d
feat(idris): add parser and queries (#7274) 2025-01-16 17:34:37 +01:00
Guilherme Soares
984214ef8e
feat(gotmpl): highlight "=" operator (#7553) 2025-01-14 08:20:51 +01:00
Álan e Sousa
c7dc251cdd fix(matlab): indentation of arguments statement 2025-01-13 18:05:45 +01:00
someone13574
29f96aafe1
fix(verilog): add ifndef highlight (#7548) 2025-01-11 23:12:54 +01:00
JSaugsburg
9ef2e37e1b
feat(awk): highlight more builtin functions 2025-01-11 14:31:24 +01:00
Brian Cardarella
e1e2ad1448
feat(elixir): add highlight for LVN sigils 2025-01-11 10:44:04 +01:00
Igor
057990eb24 feat(http): fold queries 2025-01-10 09:06:34 +01:00
Ian Hobson
8ca76960ae feat(koto): Update highlighting for 0.15 2025-01-08 13:54:35 +01:00
joker1007
57713d079c fix(rbs): fix highlight queries of rbs that is missing some definitions 2025-01-04 16:13:26 +01:00
Robert Horvath
6935286b4e fix(leo): intentation fix of parenthesis 2025-01-03 19:17:21 +01:00
Caleb White
6cb4098d51 fix(php): properly highlight grouped imported functions and constants 2025-01-02 19:13:44 +01:00
vanaigr
5f78e98924 fix(bash): offset injection content 2024-12-31 10:49:30 +01:00
Shaun Attfield (shaun@xomen)
4b22291348 fix(xml): properly indent closing tags
Confusing as it is,
https://github.com/heurist/nvim-treesitter/blob/master/CONTRIBUTING.md?plain=1#L394
says:

```query
@indent.dedent      ; dedent children when matching this node
@indent.branch      ; dedent itself when matching this node
```

@indent.branch is therefore the approriate choice for de-indenting.
2024-12-30 17:55:55 +01:00
Robert Horvath
1087b183a7 fix(leo): indent } now properly dedents 2024-12-30 17:55:35 +01:00
Robert Horvath
f0f48e0290 feat(leo): highlights casting and record expressions added 2024-12-30 17:55:35 +01:00
Serhii Khoma
f87c8956ae
feat(ipkg): add parser and queries (#7277)
Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
2024-12-30 08:48:20 -08:00