diff options
Diffstat (limited to 'queries')
| -rwxr-xr-x | queries/r/highlights.scm | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/queries/r/highlights.scm b/queries/r/highlights.scm index 2688746b..8cc8727b 100755 --- a/queries/r/highlights.scm +++ b/queries/r/highlights.scm @@ -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 |
