r(highlights): add default parameter/argument (#2688)

* Update lockfile.json

* r(highlights): default argument/parameter and some updates
This commit is contained in:
Pedro Castro 2022-03-28 16:17:28 -03:00 committed by GitHub
parent 76cb7cf7e5
commit 249cd3ac3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 10 deletions

View file

@ -225,7 +225,7 @@
"revision": "5217c6805c09f8fc00ed13d17d5fcb791437aee6" "revision": "5217c6805c09f8fc00ed13d17d5fcb791437aee6"
}, },
"r": { "r": {
"revision": "c19e54de252d5573cc2a762a030957074526fe99" "revision": "cc04302e1bff76fa02e129f332f44636813b0c3c"
}, },
"rasi": { "rasi": {
"revision": "e2961f02244c068a67549adf896b0779e4a29516" "revision": "e2961f02244c068a67549adf896b0779e4a29516"

View file

@ -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