Commit graph

2847 commits

Author SHA1 Message Date
John-Philip Taylor
da88ea477c
fix(vhdl): capture "|" as @operator (#7744) 2025-03-16 14:38:03 +01:00
Riley Bruins
99ea6c5d43 feat(typst): highlight language name as @label 2025-03-15 13:57:13 +01:00
Salomon Popp
683816f147
fix(python): don't highlight parameter name as builtin (#7732) 2025-03-13 09:21:55 +01:00
Caleb White
548ed98f8a
feat(blade): add laravel blade parser and queries (#7693) 2025-03-12 18:47:19 +01:00
Novus Nota
6d1a8e6fdb
feat(tact): update parser and queries (#7731) 2025-03-12 18:26:07 +01:00
Salomon Popp
1a314a58d6
fix(python): highlight function calls correctly (#7728) 2025-03-12 09:22:33 +01:00
Salomon Popp
cf0eabc16c
fix(python): don't highlight attribute name as builtin (#7712)
* fix(python): don't highlight attribute name as builtin

* fix(python): highlight `@variable.member` correctly for member access context

* test: add test

* test: expand test

* docs: update comment

* refactor: change order, remove priority override

* style: remove extra newline
2025-03-11 08:48:33 +01:00
Omar Valdez
833405d5a9
feat(bibtex): highlight URLs and DOIs (#7725) 2025-03-11 08:48:09 +01:00
Omar Valdez
38959800c2
fix(bibtex): use more appropriate captures (#7721) 2025-03-10 09:40:32 +01: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
uncenter
f840ab9f72
feat(tera): add parser and queries 2025-03-09 18:44:59 +01: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
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
Riley Bruins
2b0760dca2 feat(jsx): commentstring query 2025-03-04 09:49:57 +01:00
Riley Bruins
1adcd57119 feat(markdown): fold sublists 2025-03-03 09:44:46 +01:00
nvim-treesitter-bot[bot]
99487eb34a bot(lockfile): update php, php_only, rust, v 2025-02-28 08:37:39 +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
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
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