mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -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"
|
||||
},
|
||||
"r": {
|
||||
"revision": "c19e54de252d5573cc2a762a030957074526fe99"
|
||||
"revision": "cc04302e1bff76fa02e129f332f44636813b0c3c"
|
||||
},
|
||||
"rasi": {
|
||||
"revision": "e2961f02244c068a67549adf896b0779e4a29516"
|
||||
|
|
|
|||
|
|
@ -8,13 +8,14 @@
|
|||
(complex) @number
|
||||
|
||||
(string) @string
|
||||
(string (escape_sequence) @string.escape)
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
(formal_parameters (identifier) @parameter)
|
||||
|
||||
(formal_parameters (default_parameter (identifier) @parameter))
|
||||
; Operators
|
||||
[
|
||||
"="
|
||||
|
|
@ -55,6 +56,8 @@
|
|||
(special)
|
||||
] @operator
|
||||
|
||||
(lambda_function "\\" @operator)
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
|
|
@ -87,6 +90,7 @@
|
|||
[
|
||||
"if"
|
||||
"else"
|
||||
"switch"
|
||||
] @conditional
|
||||
|
||||
[
|
||||
|
|
@ -103,12 +107,7 @@
|
|||
"function" @keyword.function
|
||||
|
||||
(call function: (identifier) @function)
|
||||
|
||||
(call arguments:
|
||||
(arguments
|
||||
name: (identifier) @parameter))
|
||||
|
||||
(lambda_function "\\" @operator)
|
||||
(default_argument name: (identifier) @parameter)
|
||||
|
||||
(namespace_get function: (identifier) @method)
|
||||
(namespace_get_internal function: (identifier) @method)
|
||||
|
|
@ -119,7 +118,5 @@
|
|||
(namespace_get_internal namespace: (identifier) @namespace
|
||||
":::" @operator)
|
||||
|
||||
(string (escape_sequence) @string.escape)
|
||||
|
||||
; Error
|
||||
(ERROR) @error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue