| 1 |
|
| 2 |
|
| 3 |
(identifier) @variable |
| 4 |
|
| 5 |
|
| 6 |
(extract_operator rhs: (identifier) @variable.other.member) |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
[ |
| 11 |
(integer) |
| 12 |
(complex) |
| 13 |
] @constant.numeric.integer |
| 14 |
|
| 15 |
[ |
| 16 |
(float) |
| 17 |
(nan) |
| 18 |
(inf) |
| 19 |
] @constant.numeric.float |
| 20 |
|
| 21 |
[ |
| 22 |
(true) |
| 23 |
(false) |
| 24 |
] @constant.builtin.boolean |
| 25 |
|
| 26 |
[ |
| 27 |
(na) |
| 28 |
(null) |
| 29 |
(dots) |
| 30 |
(dot_dot_i) |
| 31 |
] @constant.builtin |
| 32 |
|
| 33 |
(string) @string |
| 34 |
(string (string_content (escape_sequence) @constant.character.escape)) |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
(comment) @comment |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
[ |
| 43 |
"!" "!=" "$" "&" "&&" "*" "**" "+" "-" "->" "->>" "/" ":" ":::" ":::" ":=" "<" |
| 44 |
"<-" "<<-" "<=" "=" "==" ">" ">=" "?" "@" "^" "special" "|" "|>" "||" "~" |
| 45 |
] @operator |
| 46 |
|
| 47 |
(function_definition name: "\\" @operator) |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
[ |
| 52 |
"(" ")" |
| 53 |
"[" "]" |
| 54 |
"{" "}" |
| 55 |
"[[" "]]" |
| 56 |
] @punctuation.bracket |
| 57 |
|
| 58 |
(comma) @punctuation.delimiter |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
(binary_operator |
| 63 |
lhs: (identifier) @function |
| 64 |
operator: "<-" |
| 65 |
rhs: (function_definition)) |
| 66 |
|
| 67 |
(binary_operator |
| 68 |
lhs: (identifier) @function |
| 69 |
operator: "=" |
| 70 |
rhs: (function_definition)) |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
(call function: (identifier) @function) |
| 75 |
(call function: (namespace_operator rhs: (identifier) @function)) |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
(parameters (parameter name: (identifier) @variable.parameter)) |
| 80 |
(arguments (argument name: (identifier) @variable.parameter)) |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
(namespace_operator lhs: (identifier) @namespace) |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
[ |
| 89 |
"in" |
| 90 |
(next) |
| 91 |
(break) |
| 92 |
] @keyword |
| 93 |
|
| 94 |
(return) @keyword.control.return |
| 95 |
|
| 96 |
[ |
| 97 |
"if" |
| 98 |
"else" |
| 99 |
] @keyword.control.conditional |
| 100 |
|
| 101 |
[ |
| 102 |
"while" |
| 103 |
"repeat" |
| 104 |
"for" |
| 105 |
] @keyword.control.repeat |
| 106 |
|
| 107 |
"function" @keyword.function |
| 108 |
|