mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
feat: update jsonnet queries
This commit is contained in:
parent
17d3398b5b
commit
4ffdc4c985
2 changed files with 30 additions and 34 deletions
|
|
@ -282,7 +282,7 @@
|
||||||
"revision": "02b01653c8a1c198ae7287d566efa86a135b30d5"
|
"revision": "02b01653c8a1c198ae7287d566efa86a135b30d5"
|
||||||
},
|
},
|
||||||
"jsonnet": {
|
"jsonnet": {
|
||||||
"revision": "26d9699842a429731844c93cbcb485519bb2c526"
|
"revision": "d34615fa12cc1d1cfc1f1f1a80acc9db80ee4596"
|
||||||
},
|
},
|
||||||
"julia": {
|
"julia": {
|
||||||
"revision": "ab0f70c0a919d38b41822305a8ca80e527c94e4f"
|
"revision": "ab0f70c0a919d38b41822305a8ca80e527c94e4f"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,11 @@
|
||||||
(number) @number
|
(number) @number
|
||||||
(string) @string
|
(string) @string
|
||||||
|
|
||||||
(fieldname (id) @label)
|
(fieldname (id) @field)
|
||||||
|
(fieldaccess
|
||||||
|
last: (id) @field)
|
||||||
|
(fieldaccess_super
|
||||||
|
(id) @field)
|
||||||
|
|
||||||
[
|
[
|
||||||
"["
|
"["
|
||||||
|
|
@ -30,28 +34,13 @@
|
||||||
":::"
|
":::"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
; Nested field inheritance
|
||||||
|
("+" @punctuation.delimiter [":" "::" ":::"])
|
||||||
|
|
||||||
|
"=" @operator
|
||||||
(unaryop) @operator
|
(unaryop) @operator
|
||||||
[
|
(binary
|
||||||
"+"
|
operator: (_) @operator)
|
||||||
"-"
|
|
||||||
"*"
|
|
||||||
"/"
|
|
||||||
"%"
|
|
||||||
"^"
|
|
||||||
"=="
|
|
||||||
"!="
|
|
||||||
"<="
|
|
||||||
">="
|
|
||||||
"<"
|
|
||||||
">"
|
|
||||||
"="
|
|
||||||
"&"
|
|
||||||
"|"
|
|
||||||
"<<"
|
|
||||||
">>"
|
|
||||||
"&&"
|
|
||||||
"||"
|
|
||||||
] @operator
|
|
||||||
|
|
||||||
"for" @repeat
|
"for" @repeat
|
||||||
|
|
||||||
|
|
@ -61,6 +50,7 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
(local)
|
(local)
|
||||||
|
(tailstrict)
|
||||||
"assert"
|
"assert"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
|
@ -70,27 +60,33 @@
|
||||||
"then"
|
"then"
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
|
"error" @exception
|
||||||
|
|
||||||
[
|
[
|
||||||
(dollar)
|
(dollar)
|
||||||
(self)
|
(self)
|
||||||
|
(super)
|
||||||
] @variable.builtin
|
] @variable.builtin
|
||||||
((id) @variable.builtin
|
((id) @variable.builtin
|
||||||
(#eq? @variable.builtin "std"))
|
(#eq? @variable.builtin "std"))
|
||||||
|
|
||||||
; Function declaration
|
; Function declaration
|
||||||
|
(param
|
||||||
|
identifier: (id) @parameter)
|
||||||
|
(field
|
||||||
|
(fieldname (id) @function)
|
||||||
|
[(anonymous_function) (params)])
|
||||||
(bind
|
(bind
|
||||||
function: (id) @function
|
function: (id) @function)
|
||||||
params: (params
|
|
||||||
(param
|
|
||||||
identifier: (id) @parameter)))
|
|
||||||
|
|
||||||
; Function call
|
; Function call
|
||||||
(expr
|
(functioncall (id) @function.call)
|
||||||
(expr (id) @function.call)
|
(functioncall
|
||||||
"("
|
(fieldaccess
|
||||||
(args
|
last: (id) @function.call))
|
||||||
(named_argument
|
(functioncall
|
||||||
(id) @parameter))?
|
(fieldaccess_super
|
||||||
")")
|
(id) @function.call))
|
||||||
|
(named_argument (id) @parameter)
|
||||||
|
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue