mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
r(highlights): add default parameter/argument (#2688)
* Update lockfile.json * r(highlights): default argument/parameter and some updates
This commit is contained in:
parent
76cb7cf7e5
commit
249cd3ac3e
2 changed files with 7 additions and 10 deletions
|
|
@ -225,7 +225,7 @@
|
||||||
"revision": "5217c6805c09f8fc00ed13d17d5fcb791437aee6"
|
"revision": "5217c6805c09f8fc00ed13d17d5fcb791437aee6"
|
||||||
},
|
},
|
||||||
"r": {
|
"r": {
|
||||||
"revision": "c19e54de252d5573cc2a762a030957074526fe99"
|
"revision": "cc04302e1bff76fa02e129f332f44636813b0c3c"
|
||||||
},
|
},
|
||||||
"rasi": {
|
"rasi": {
|
||||||
"revision": "e2961f02244c068a67549adf896b0779e4a29516"
|
"revision": "e2961f02244c068a67549adf896b0779e4a29516"
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,14 @@
|
||||||
(complex) @number
|
(complex) @number
|
||||||
|
|
||||||
(string) @string
|
(string) @string
|
||||||
|
(string (escape_sequence) @string.escape)
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
(formal_parameters (identifier) @parameter)
|
(formal_parameters (identifier) @parameter)
|
||||||
|
(formal_parameters (default_parameter (identifier) @parameter))
|
||||||
; Operators
|
; Operators
|
||||||
[
|
[
|
||||||
"="
|
"="
|
||||||
|
|
@ -55,6 +56,8 @@
|
||||||
(special)
|
(special)
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
|
(lambda_function "\\" @operator)
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
|
|
@ -87,6 +90,7 @@
|
||||||
[
|
[
|
||||||
"if"
|
"if"
|
||||||
"else"
|
"else"
|
||||||
|
"switch"
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -103,12 +107,7 @@
|
||||||
"function" @keyword.function
|
"function" @keyword.function
|
||||||
|
|
||||||
(call function: (identifier) @function)
|
(call function: (identifier) @function)
|
||||||
|
(default_argument name: (identifier) @parameter)
|
||||||
(call arguments:
|
|
||||||
(arguments
|
|
||||||
name: (identifier) @parameter))
|
|
||||||
|
|
||||||
(lambda_function "\\" @operator)
|
|
||||||
|
|
||||||
(namespace_get function: (identifier) @method)
|
(namespace_get function: (identifier) @method)
|
||||||
(namespace_get_internal function: (identifier) @method)
|
(namespace_get_internal function: (identifier) @method)
|
||||||
|
|
@ -119,7 +118,5 @@
|
||||||
(namespace_get_internal namespace: (identifier) @namespace
|
(namespace_get_internal namespace: (identifier) @namespace
|
||||||
":::" @operator)
|
":::" @operator)
|
||||||
|
|
||||||
(string (escape_sequence) @string.escape)
|
|
||||||
|
|
||||||
; Error
|
; Error
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue