mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(jsonnet): add "for" & "function", update operator highlights
`expr` -> `operator` doesn't exist in the node tree anymore after
505f5bd900
This commit is contained in:
parent
2883a9cf86
commit
71bb1da621
1 changed files with 22 additions and 2 deletions
|
|
@ -30,13 +30,33 @@
|
||||||
":::"
|
":::"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
(expr
|
(unaryop) @operator
|
||||||
operator: (_) @operator)
|
|
||||||
[
|
[
|
||||||
"+"
|
"+"
|
||||||
|
"-"
|
||||||
|
"*"
|
||||||
|
"/"
|
||||||
|
"%"
|
||||||
|
"^"
|
||||||
|
"=="
|
||||||
|
"!="
|
||||||
|
"<="
|
||||||
|
">="
|
||||||
|
"<"
|
||||||
|
">"
|
||||||
"="
|
"="
|
||||||
|
"&"
|
||||||
|
"|"
|
||||||
|
"<<"
|
||||||
|
">>"
|
||||||
|
"&&"
|
||||||
|
"||"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
"for" @repeat
|
||||||
|
|
||||||
|
"function" @keyword.function
|
||||||
|
|
||||||
"in" @keyword.operator
|
"in" @keyword.operator
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue