| 1 |
[ |
| 2 |
"!instanceof" |
| 3 |
"assert" |
| 4 |
"class" |
| 5 |
"extends" |
| 6 |
"instanceof" |
| 7 |
"package" |
| 8 |
] @keyword |
| 9 |
|
| 10 |
[ |
| 11 |
"!in" |
| 12 |
"as" |
| 13 |
"in" |
| 14 |
] @keyword.operator |
| 15 |
|
| 16 |
[ |
| 17 |
"case" |
| 18 |
"default" |
| 19 |
"else" |
| 20 |
"if" |
| 21 |
"switch" |
| 22 |
] @keyword.control.conditional |
| 23 |
|
| 24 |
[ |
| 25 |
"catch" |
| 26 |
"finally" |
| 27 |
"try" |
| 28 |
] @keyword.control.exception |
| 29 |
|
| 30 |
"def" @keyword.function |
| 31 |
|
| 32 |
"import" @keyword.control.import |
| 33 |
|
| 34 |
[ |
| 35 |
"for" |
| 36 |
"while" |
| 37 |
(break) |
| 38 |
(continue) |
| 39 |
] @keyword.control.repeat |
| 40 |
|
| 41 |
"return" @keyword.control.return |
| 42 |
|
| 43 |
[ |
| 44 |
"true" |
| 45 |
"false" |
| 46 |
] @constant.builtin.boolean |
| 47 |
|
| 48 |
(null) @constant.builtin |
| 49 |
|
| 50 |
"this" @variable.builtin |
| 51 |
|
| 52 |
[ |
| 53 |
"int" |
| 54 |
"char" |
| 55 |
"short" |
| 56 |
"long" |
| 57 |
"boolean" |
| 58 |
"float" |
| 59 |
"double" |
| 60 |
"void" |
| 61 |
] @type.builtin |
| 62 |
|
| 63 |
[ |
| 64 |
"final" |
| 65 |
"private" |
| 66 |
"protected" |
| 67 |
"public" |
| 68 |
"static" |
| 69 |
"synchronized" |
| 70 |
] @keyword.storage.modifier |
| 71 |
|
| 72 |
(comment) @comment |
| 73 |
|
| 74 |
(shebang) @keyword.directive |
| 75 |
|
| 76 |
(string) @string |
| 77 |
|
| 78 |
(string |
| 79 |
(escape_sequence) @constant.character.escape) |
| 80 |
|
| 81 |
(string |
| 82 |
(interpolation |
| 83 |
"$" @punctuation.special)) |
| 84 |
|
| 85 |
[ |
| 86 |
"(" |
| 87 |
")" |
| 88 |
"[" |
| 89 |
"]" |
| 90 |
"{" |
| 91 |
"}" |
| 92 |
] @punctuation.bracket |
| 93 |
|
| 94 |
[ |
| 95 |
":" |
| 96 |
"," |
| 97 |
"." |
| 98 |
] @punctuation.delimiter |
| 99 |
|
| 100 |
(number_literal) @constant.numeric |
| 101 |
|
| 102 |
(identifier) @variable |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
(dotted_identifier |
| 108 |
(identifier) @variable.other.member .) |
| 109 |
|
| 110 |
((identifier) @constant |
| 111 |
(#match? @constant "^[A-Z][A-Z_]+")) |
| 112 |
|
| 113 |
[ |
| 114 |
"%" |
| 115 |
"*" |
| 116 |
"/" |
| 117 |
"+" |
| 118 |
"-" |
| 119 |
"<<" |
| 120 |
">>" |
| 121 |
">>>" |
| 122 |
".." |
| 123 |
"..<" |
| 124 |
"<..<" |
| 125 |
"<.." |
| 126 |
"<" |
| 127 |
"<=" |
| 128 |
">" |
| 129 |
">=" |
| 130 |
"==" |
| 131 |
"!=" |
| 132 |
"<=>" |
| 133 |
"===" |
| 134 |
"!==" |
| 135 |
"=~" |
| 136 |
"==~" |
| 137 |
"&" |
| 138 |
"^" |
| 139 |
"|" |
| 140 |
"&&" |
| 141 |
"||" |
| 142 |
"?:" |
| 143 |
"+" |
| 144 |
"*" |
| 145 |
".&" |
| 146 |
".@" |
| 147 |
"?." |
| 148 |
"*." |
| 149 |
"*" |
| 150 |
"*:" |
| 151 |
"++" |
| 152 |
"--" |
| 153 |
"!" |
| 154 |
] @operator |
| 155 |
|
| 156 |
(string |
| 157 |
"/" @string) |
| 158 |
|
| 159 |
(ternary_op |
| 160 |
([ |
| 161 |
"?" |
| 162 |
":" |
| 163 |
]) @keyword.operator) |
| 164 |
|
| 165 |
(map |
| 166 |
(map_item |
| 167 |
key: (identifier) @variable.parameter)) |
| 168 |
|
| 169 |
(parameter |
| 170 |
type: (identifier) @type |
| 171 |
name: (identifier) @variable.parameter) |
| 172 |
|
| 173 |
(generic_param |
| 174 |
name: (identifier) @variable.parameter) |
| 175 |
|
| 176 |
(declaration |
| 177 |
type: (identifier) @type) |
| 178 |
|
| 179 |
(function_definition |
| 180 |
type: (identifier) @type) |
| 181 |
|
| 182 |
(function_declaration |
| 183 |
type: (identifier) @type) |
| 184 |
|
| 185 |
(class_definition |
| 186 |
name: (identifier) @type) |
| 187 |
|
| 188 |
(class_definition |
| 189 |
superclass: (identifier) @type) |
| 190 |
|
| 191 |
(generic_param |
| 192 |
superclass: (identifier) @type) |
| 193 |
|
| 194 |
(type_with_generics |
| 195 |
(identifier) @type) |
| 196 |
|
| 197 |
(type_with_generics |
| 198 |
(generics |
| 199 |
(identifier) @type)) |
| 200 |
|
| 201 |
(generics |
| 202 |
[ |
| 203 |
"<" |
| 204 |
">" |
| 205 |
] @punctuation.bracket) |
| 206 |
|
| 207 |
(generic_parameters |
| 208 |
[ |
| 209 |
"<" |
| 210 |
">" |
| 211 |
] @punctuation.bracket) |
| 212 |
|
| 213 |
|
| 214 |
(declaration |
| 215 |
"=" @operator) |
| 216 |
|
| 217 |
(assignment |
| 218 |
"=" @operator) |
| 219 |
|
| 220 |
(function_call |
| 221 |
function: (identifier) @function) |
| 222 |
|
| 223 |
(function_call |
| 224 |
function: |
| 225 |
(dotted_identifier |
| 226 |
(identifier) @function .)) |
| 227 |
|
| 228 |
(function_call |
| 229 |
(argument_list |
| 230 |
(map_item |
| 231 |
key: (identifier) @variable.parameter))) |
| 232 |
|
| 233 |
(juxt_function_call |
| 234 |
function: (identifier) @function) |
| 235 |
|
| 236 |
(juxt_function_call |
| 237 |
function: |
| 238 |
(dotted_identifier |
| 239 |
(identifier) @function .)) |
| 240 |
|
| 241 |
(juxt_function_call |
| 242 |
(argument_list |
| 243 |
(map_item |
| 244 |
key: (identifier) @variable.parameter))) |
| 245 |
|
| 246 |
(function_definition |
| 247 |
function: (identifier) @function) |
| 248 |
|
| 249 |
(function_declaration |
| 250 |
function: (identifier) @function) |
| 251 |
|
| 252 |
(annotation) @function.macro |
| 253 |
|
| 254 |
(annotation |
| 255 |
(identifier) @function.macro) |
| 256 |
|
| 257 |
"@interface" @function.macro |
| 258 |
|
| 259 |
(groovy_doc) @comment.block.documentation |
| 260 |
|
| 261 |
(groovy_doc |
| 262 |
[ |
| 263 |
(groovy_doc_param) |
| 264 |
(groovy_doc_throws) |
| 265 |
(groovy_doc_tag) |
| 266 |
] @string.special) |
| 267 |
|
| 268 |
(groovy_doc |
| 269 |
(groovy_doc_param |
| 270 |
(identifier) @variable.parameter)) |
| 271 |
|
| 272 |
(groovy_doc |
| 273 |
(groovy_doc_throws |
| 274 |
(identifier) @type)) |