| 1 |
|
| 2 |
|
| 3 |
[ |
| 4 |
"is" |
| 5 |
"extends" |
| 6 |
"valueof" |
| 7 |
] @keyword.operator |
| 8 |
|
| 9 |
[ |
| 10 |
"namespace" |
| 11 |
"scalar" |
| 12 |
"interface" |
| 13 |
"alias" |
| 14 |
] @keyword |
| 15 |
|
| 16 |
[ |
| 17 |
"model" |
| 18 |
"enum" |
| 19 |
"union" |
| 20 |
] @keyword.storage.type |
| 21 |
|
| 22 |
[ |
| 23 |
"op" |
| 24 |
"fn" |
| 25 |
"dec" |
| 26 |
] @keyword.function |
| 27 |
|
| 28 |
"extern" @keyword.storage.modifier |
| 29 |
|
| 30 |
[ |
| 31 |
"import" |
| 32 |
"using" |
| 33 |
] @keyword.control.import |
| 34 |
|
| 35 |
[ |
| 36 |
"(" |
| 37 |
")" |
| 38 |
"{" |
| 39 |
"}" |
| 40 |
"<" |
| 41 |
">" |
| 42 |
"[" |
| 43 |
"]" |
| 44 |
] @punctuation.bracket |
| 45 |
|
| 46 |
[ |
| 47 |
"," |
| 48 |
";" |
| 49 |
"." |
| 50 |
":" |
| 51 |
] @punctuation.delimiter |
| 52 |
|
| 53 |
[ |
| 54 |
"|" |
| 55 |
"&" |
| 56 |
"=" |
| 57 |
"..." |
| 58 |
] @operator |
| 59 |
|
| 60 |
"?" @punctuation.special |
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
(identifier_or_member_expression) @type |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
(import_statement |
| 69 |
(quoted_string_literal) @string.special.path) |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
(using_statement |
| 74 |
module: (identifier_or_member_expression) @namespace) |
| 75 |
|
| 76 |
(namespace_statement |
| 77 |
name: (identifier_or_member_expression) @namespace) |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
[ |
| 82 |
(single_line_comment) |
| 83 |
] @comment.line |
| 84 |
|
| 85 |
[ |
| 86 |
(multi_line_comment) |
| 87 |
] @comment.block |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
(decorator |
| 92 |
"@" @attribute |
| 93 |
name: (identifier_or_member_expression) @attribute) |
| 94 |
|
| 95 |
(augment_decorator_statement |
| 96 |
name: (identifier_or_member_expression) @attribute) |
| 97 |
|
| 98 |
(decorator |
| 99 |
(decorator_arguments) @variable.parameter) |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
(scalar_statement |
| 104 |
name: (identifier) @type) |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
(model_statement |
| 109 |
name: (identifier) @type) |
| 110 |
|
| 111 |
(model_property |
| 112 |
name: (identifier) @variable.other.member) |
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
(operation_statement |
| 117 |
name: (identifier) @function.method) |
| 118 |
|
| 119 |
(operation_arguments |
| 120 |
(model_property |
| 121 |
name: (identifier) @variable.parameter)) |
| 122 |
|
| 123 |
(template_parameter |
| 124 |
name: (identifier) @type.parameter) |
| 125 |
|
| 126 |
(function_parameter |
| 127 |
name: (identifier) @variable.parameter) |
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
(interface_statement |
| 132 |
name: (identifier) @type) |
| 133 |
|
| 134 |
(interface_statement |
| 135 |
(interface_body |
| 136 |
(interface_member |
| 137 |
(identifier) @function.method))) |
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
(enum_statement |
| 142 |
name: (identifier) @type.enum) |
| 143 |
|
| 144 |
(enum_member |
| 145 |
name: (identifier) @constant) |
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
(union_statement |
| 150 |
name: (identifier) @type) |
| 151 |
|
| 152 |
(union_variant |
| 153 |
name: (identifier) @type.enum.variant) |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
(alias_statement |
| 158 |
name: (identifier) @type) |
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
[ |
| 163 |
(quoted_string_literal) |
| 164 |
(triple_quoted_string_literal) |
| 165 |
] @string |
| 166 |
|
| 167 |
(escape_sequence) @constant.character.escape |
| 168 |
|
| 169 |
(boolean_literal) @constant.builtin.boolean |
| 170 |
|
| 171 |
[ |
| 172 |
(decimal_literal) |
| 173 |
(hex_integer_literal) |
| 174 |
(binary_integer_literal) |
| 175 |
] @constant.numeric.integer |
| 176 |
|
| 177 |
(builtin_type) @type.builtin |