mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -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
|
||||
|
||||
(expr
|
||||
operator: (_) @operator)
|
||||
(unaryop) @operator
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"%"
|
||||
"^"
|
||||
"=="
|
||||
"!="
|
||||
"<="
|
||||
">="
|
||||
"<"
|
||||
">"
|
||||
"="
|
||||
"&"
|
||||
"|"
|
||||
"<<"
|
||||
">>"
|
||||
"&&"
|
||||
"||"
|
||||
] @operator
|
||||
|
||||
"for" @repeat
|
||||
|
||||
"function" @keyword.function
|
||||
|
||||
"in" @keyword.operator
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue