| 1 |
(identifier) @variable |
| 2 |
|
| 3 |
|
| 4 |
[ |
| 5 |
"package" |
| 6 |
"import" |
| 7 |
] @keyword.control.import |
| 8 |
|
| 9 |
|
| 10 |
(package_identifier) @namespace |
| 11 |
|
| 12 |
(import_spec |
| 13 |
[ |
| 14 |
"." |
| 15 |
"_" |
| 16 |
] @punctuation.special) |
| 17 |
|
| 18 |
[ |
| 19 |
(attr_path) |
| 20 |
(package_path) |
| 21 |
] @string.special.url |
| 22 |
|
| 23 |
|
| 24 |
(attribute) @attribute |
| 25 |
|
| 26 |
|
| 27 |
"if" @keyword.control.conditional |
| 28 |
|
| 29 |
|
| 30 |
"for" @keyword.control.repeat |
| 31 |
|
| 32 |
(for_clause |
| 33 |
"_" @punctuation.special) |
| 34 |
|
| 35 |
|
| 36 |
"let" @keyword |
| 37 |
|
| 38 |
"in" @keyword.operator |
| 39 |
|
| 40 |
|
| 41 |
[ |
| 42 |
"+" |
| 43 |
"-" |
| 44 |
"*" |
| 45 |
"/" |
| 46 |
"|" |
| 47 |
"&" |
| 48 |
"||" |
| 49 |
"&&" |
| 50 |
"==" |
| 51 |
"!=" |
| 52 |
"<" |
| 53 |
"<=" |
| 54 |
">" |
| 55 |
">=" |
| 56 |
"=~" |
| 57 |
"!~" |
| 58 |
"!" |
| 59 |
"=" |
| 60 |
] @operator |
| 61 |
|
| 62 |
|
| 63 |
(field |
| 64 |
(label |
| 65 |
(identifier) @variable.other.member)) |
| 66 |
|
| 67 |
(selector_expression |
| 68 |
(_) |
| 69 |
(identifier) @variable.other.member) |
| 70 |
|
| 71 |
|
| 72 |
(call_expression |
| 73 |
function: (identifier) @function) |
| 74 |
|
| 75 |
(call_expression |
| 76 |
function: (selector_expression |
| 77 |
(_) |
| 78 |
(identifier) @function)) |
| 79 |
|
| 80 |
(call_expression |
| 81 |
function: (builtin_function) @function) |
| 82 |
|
| 83 |
(builtin_function) @function.builtin |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
(primitive_type) @type.builtin |
| 89 |
|
| 90 |
((identifier) @type |
| 91 |
(#match? @type "^_?#")) |
| 92 |
|
| 93 |
[ |
| 94 |
(slice_type) |
| 95 |
(pointer_type) |
| 96 |
] @type |
| 97 |
|
| 98 |
|
| 99 |
[ |
| 100 |
"," |
| 101 |
":" |
| 102 |
] @punctuation.delimiter |
| 103 |
|
| 104 |
[ |
| 105 |
"{" |
| 106 |
"}" |
| 107 |
"[" |
| 108 |
"]" |
| 109 |
"(" |
| 110 |
")" |
| 111 |
"<" |
| 112 |
">" |
| 113 |
] @punctuation.bracket |
| 114 |
|
| 115 |
[ |
| 116 |
(ellipsis) |
| 117 |
"?" |
| 118 |
] @punctuation.special |
| 119 |
|
| 120 |
|
| 121 |
(string) @string |
| 122 |
|
| 123 |
[ |
| 124 |
(escape_char) |
| 125 |
(escape_unicode) |
| 126 |
] @constant.character.escape |
| 127 |
|
| 128 |
(number) @constant.numeric |
| 129 |
|
| 130 |
(float) @constant.numeric.float |
| 131 |
|
| 132 |
(si_unit |
| 133 |
(float) |
| 134 |
(_) @string.special.symbol) |
| 135 |
|
| 136 |
(boolean) @constant.builtin.boolean |
| 137 |
|
| 138 |
[ |
| 139 |
(null) |
| 140 |
(top) |
| 141 |
(bottom) |
| 142 |
] @constant.builtin |
| 143 |
|
| 144 |
|
| 145 |
(interpolation |
| 146 |
"\\(" @punctuation.special |
| 147 |
(_) |
| 148 |
")" @punctuation.special) |
| 149 |
|
| 150 |
(interpolation |
| 151 |
"\\(" |
| 152 |
(identifier) @variable |
| 153 |
")") |
| 154 |
|
| 155 |
|
| 156 |
(comment) @comment |