Amaan Qureshi
4d5a8e7006
feat(kconfig): adapt queries to parser changes
2024-12-22 11:06:48 +01:00
zc he
981ca7e353
fix(nu): perf issue of highlight.scm ( #7475 )
2024-12-17 16:50:36 -08:00
phanium
c47d8d27d0
fix(lua): remove duplicate nvim_command ( #7477 )
2024-12-17 11:32:17 +01:00
Mae Brooks
ad5ea0bbed
fix(gren): adapt queries to parser changes ( #7472 )
...
`case of` -> `when is`
2024-12-16 10:37:35 +01:00
Vincent Rischmann
54a29bf99d
feat(zig): improve indents ( #7471 )
2024-12-15 22:29:54 +01:00
Riley Bruins
5cf3434c69
feat(go): string regex highlights
2024-12-15 12:02:42 +01:00
Riley Bruins
89ecadd2b1
fix(go): properly apply injections in strings
2024-12-15 12:02:42 +01:00
Heber
c97f14eed1
feat(soql): update parser and queries ( #7461 )
2024-12-12 08:31:38 +01:00
phanium
c5c9f234b3
feat(sxhkd): add bash injection for (command) ( #7456 )
2024-12-10 08:08:02 +01:00
Alexandr Martirosyan
be17791f86
feat(circom): add parser and queries
2024-12-06 18:41:37 +01:00
Fredrik Ekre
acada1a685
fix(julia): fix incorrect documentation query
...
This patch fixes an inprecise `@string.documentation` query introduced
in https://github.com/nvim-treesitter/nvim-treesitter/pull/7391 . The
pattern `(string_literal) . (call_expression)` matches also for example
`"hello"` in `foo("hello", bar())`. Similarly to
https://github.com/nvim-treesitter/nvim-treesitter/pull/7436 , this patch
limits the pattern to top-level statements.
2024-12-05 15:04:15 +01:00
Yorick Peterse
0aaf146590
feat(inko): highlight the "copy" keyword
...
This keyword is added as part of the upcoming 0.18.0 release.
2024-12-04 15:39:04 +01:00
Fredrik Ekre
b0fc560c75
fix(julia): fix incorrect documentation query
...
This patch fixes an inprecise `@string.documentation` query introduced
in https://github.com/nvim-treesitter/nvim-treesitter/pull/7391 .
Specifically, the pattern `(string_literal) . (identifier)` matches also
for example `"hello"` in
```julia
foo("hello", world)
@info "hello" world
```
To fix this, this patch limits the pattern to top-level statements.
2024-12-04 11:59:55 +01:00
nvim-treesitter-bot[bot]
69170c9314
bot(lockfile): update apex, editorconfig, elixir, ledger, markdown, markdown_inline, sflog, soql, sosl, styled, swift, xresources
2024-12-02 07:45:02 +00:00
Riley Bruins
2444c8052f
feat(gomod): punctuation, toolchain highlights
...
Reference file:
```gomod
module github.com/klauspost/reedsolomon
go 1.21
require github.com/klauspost/cpuid/v2 v2.2.8
require golang.org/x/sys v0.24.0 // indirect
retract (
v1.12.2 // https://github.com/klauspost/reedsolomon/pull/283
v1.11.6 // https://github.com/klauspost/reedsolomon/issues/240
[v1.11.3, v1.11.5] // https://github.com/klauspost/reedsolomon/pull/238
v1.11.2 // https://github.com/klauspost/reedsolomon/pull/229
)
```
2024-12-02 08:38:30 +01:00
Riley Bruins
454354e599
fix(nu): highlight all occurrences of "use"
2024-11-30 09:29:45 +01:00
flippette
427a90ae70
feat(rust): highlight "gen" and "raw" keywords ( #7419 )
2024-11-29 19:38:12 +01:00
Fredrik Ekre
60b4c15e7c
feat(julia): highlight interpolation operator
...
This patch adds `$` to the `@punctuation.special` capture group within
`(string_interpolation)` (e.g. `"hello $name"`) and
`(interpolation_expression)` (e.g. `:(hello $name)`) nodes.
2024-11-29 08:12:56 +01:00
Yorick Peterse
4d035005d3
feat(inko): highlight "inline" keyword
...
The parser added support for the "inline" keyword in a few places. This
ensures a highlight is present for the keyword.
2024-11-28 17:52:02 +01:00
AtomToast
02f8777252
feat(zig): add locals queries ( #7401 )
2024-11-28 08:28:51 +01:00
JoranHonig
8d4fdc5e47
fix(solidity): remove spurious operators in highlight queries ( #7412 )
2024-11-27 11:04:28 +01:00
zhangwwpeng
7930b5f983
fix(verilog): update queries ( #7400 )
...
1. Add "string" as a keyword
2. Fix issue where non-type.builtin fields are captured when using (data_type) as type.builtin
3. Add generate label
2024-11-24 10:44:23 +01:00
Fredrik Ekre
3f377c0739
fix(julia): treat :: as operator in type contexts
...
This patch captures `::` as `@operator` within
`(unary_typed_expression)` and `(typed_expression)`. These should be the
only two cases that the parser can emit when encountering `::` in the
source, but as a fallback it is still captured as `@punctuation` in all
other cases.
The reasons for capturing `::` as an operator are i) the close relation
with the other type-operators `<:` and `>:` and ii) the fact that it is
treated as an operator by the Julia parser, just like `<:` and `>:`.
2024-11-23 11:10:05 +01:00
net-solution
94853ae932
fix(astro): highlight self-closing component tags
2024-11-23 10:43:46 +01:00
Fredrik Ekre
e05c280659
fix(julia): misc fixes to type highlighting
...
This patch fixes two issues related to `@type` capturing (split out from
https://github.com/nvim-treesitter/nvim-treesitter/pull/7392 ):
- Capture the RHS of `<:` and `>:` as `@type` in `(unary_expression)`s
similarly to what is already done for `(binary_expression)`s with
these operators.
- Capture children of `(curly_expression)`s inside of
`(where_expression)`s as `@type` similarly how they are handled in
`(parametrized_type_expression)`.
2024-11-23 10:40:13 +01:00
Fredrik Ekre
28a5dc06a8
fix(julia): fix macro identifier highlight query
...
This fixes the macro identifier highlight query after the breaking
changes in https://github.com/tree-sitter/tree-sitter-julia/pull/153 .
See also
https://github.com/tree-sitter/tree-sitter-julia/pull/158/commits/9f2fb3b9a8c73ef0d2ec005c97f91274b492d48d .
2024-11-22 23:48:19 +01:00
Tomas Sandven
731fbe9ac3
feat(robot): highlight query improvements
...
- Highlight "ELSE" in inline_if_statement
- Use @string.documentation for "Documentation" settings
- Add `@spell` capture to "Documentation" settings
2024-11-22 23:19:26 +01:00
Fredrik Ekre
fcd2a5fea9
fix(julia): capture docstrings in more cases
...
This patch enables `@string.documentation` capturing, and markdown
injection, for strings attached to `(call_expression)` and
`(identifier)` nodes. For example
```julia
"docs"
foo(::Int, ::Float64)
"docs"
bar
```
2024-11-22 14:07:51 +01:00
Fredrik Ekre
2d816bb49e
fix(julia): fix injection queries
...
This patch fixes the julia `(string_literal)` injection queries after
the breaking changes in
https://github.com/tree-sitter/tree-sitter-julia/pull/153 . The queries
are simplified by the fact that string content is now directly available
as a separate `(content)` child node.
2024-11-22 13:33:54 +01:00
Riley Bruins
2d5c122af9
feat(http): more comprehensive highlights
2024-11-22 08:56:14 +01:00
Riley Bruins
1249b4cfce
fix(jsdoc): only highlight slashes in paths ( #7387 )
...
Otherwise the final slash in a doc comment `*/` will also be
highlighted.
2024-11-21 17:00:11 -08:00
Omar Valdez
8a74ac9aea
feat(python): highlight modules
2024-11-21 16:48:16 +01:00
Omar Valdez
fb12c7f8a3
feat(bash): highlight redirections
2024-11-21 16:47:55 +01:00
Omar Valdez
cd2acc803b
feat(vim): highlight prepend operator
2024-11-21 09:02:13 +01:00
nvim-treesitter-bot[bot]
c50981479e
bot(lockfile): update desktop, editorconfig, just, nu, v, xresources
2024-11-19 07:58:31 +00:00
PrestonKnopp
37427012d1
feat(gdscript): add new export annotations
2024-11-18 08:26:49 +01:00
Yi Ming
13c7caf8a6
fix(zig): begin indent at struct_declaration
2024-11-15 10:09:16 +01:00
zetashift
e1e3108cd2
feat(unison): inject markdown for doc blocks
2024-11-13 09:09:53 +01:00
zetashift
88ed26a7e6
feat(unison): add fold queries
2024-11-13 09:09:53 +01:00
zetashift
c5be87ad3e
refactor(unison): update to latest treesitter grammar
2024-11-13 09:09:53 +01:00
Christian Clason
d105f2cb7b
feat(julia): update parser and queries
2024-11-11 08:40:34 +01:00
Riley Bruins
eab2005cb5
fix(regex): more accurate highlights for named backreferences
...
Highlight both surrounding angle brackets, and only apply the operator
highlight to the actual \k operator.
2024-11-07 22:06:35 +01:00
ganhaque
ea3a37a975
fix(wgsl): indent call expression params ( #7309 )
2024-11-06 10:09:14 -08:00
David Lysenko
7c5a4632c4
feat(runescript): add parser and queries ( #7305 )
2024-11-06 17:09:38 +00:00
Riley Bruins
0d3426a2e8
fix(wgsl): indent first parameter of function definition
2024-11-06 09:24:39 +01:00
Abhishek Singh
604aa5a7c8
feat(nu): add parser and queries ( #7267 )
2024-11-05 15:25:42 +01:00
Riley Bruins
8fadb18430
feat: sway programming language
2024-11-04 08:36:41 +01:00
Riley Bruins
01a92da438
fix(rust): highlight parameters with ref in definition
2024-11-03 11:46:40 +01:00
Riley Bruins
98b46a647e
feat(regex): highlights for lazy quantifiers, \k
...
Highlights the "?" following .* and the \k backreference operator in a
pattern like the following: title=(?<quote>["'])(.*?)\k<quote>
2024-11-03 11:35:27 +01:00
Shengyu Zhang
b065b59196
fix(rst): capture (adornment) node as @markup.heading ( #7302 )
...
Node alias "adornment" is used as title's overline and underline:
5120f6e592/grammar.js (L112)
2024-11-01 09:51:17 +01:00