| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
(internal_module |
| 5 |
[((identifier) @namespace) ((nested_identifier (identifier) @namespace))]) |
| 6 |
|
| 7 |
(ambient_declaration "global" @namespace) |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
(required_parameter |
| 18 |
(identifier) @variable.parameter) |
| 19 |
|
| 20 |
|
| 21 |
(required_parameter |
| 22 |
(rest_pattern |
| 23 |
(identifier) @variable.parameter)) |
| 24 |
|
| 25 |
|
| 26 |
(required_parameter |
| 27 |
(object_pattern |
| 28 |
(shorthand_property_identifier_pattern) @variable.parameter)) |
| 29 |
|
| 30 |
|
| 31 |
(required_parameter |
| 32 |
(object_pattern |
| 33 |
(pair_pattern |
| 34 |
value: (identifier) @variable.parameter))) |
| 35 |
|
| 36 |
|
| 37 |
(required_parameter |
| 38 |
(object_pattern |
| 39 |
(object_assignment_pattern |
| 40 |
left: (shorthand_property_identifier_pattern) @variable.parameter))) |
| 41 |
|
| 42 |
|
| 43 |
(required_parameter |
| 44 |
(object_pattern |
| 45 |
(pair_pattern |
| 46 |
value: (assignment_pattern |
| 47 |
left: (identifier) @variable.parameter)))) |
| 48 |
|
| 49 |
|
| 50 |
(required_parameter |
| 51 |
(array_pattern |
| 52 |
(identifier) @variable.parameter)) |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
(optional_parameter |
| 57 |
(identifier) @variable.parameter) |
| 58 |
|
| 59 |
|
| 60 |
(optional_parameter |
| 61 |
(rest_pattern |
| 62 |
(identifier) @variable.parameter)) |
| 63 |
|
| 64 |
|
| 65 |
(optional_parameter |
| 66 |
(object_pattern |
| 67 |
(shorthand_property_identifier_pattern) @variable.parameter)) |
| 68 |
|
| 69 |
|
| 70 |
(optional_parameter |
| 71 |
(object_pattern |
| 72 |
(pair_pattern |
| 73 |
value: (identifier) @variable.parameter))) |
| 74 |
|
| 75 |
|
| 76 |
(optional_parameter |
| 77 |
(object_pattern |
| 78 |
(object_assignment_pattern |
| 79 |
left: (shorthand_property_identifier_pattern) @variable.parameter))) |
| 80 |
|
| 81 |
|
| 82 |
(optional_parameter |
| 83 |
(object_pattern |
| 84 |
(pair_pattern |
| 85 |
value: (assignment_pattern |
| 86 |
left: (identifier) @variable.parameter)))) |
| 87 |
|
| 88 |
|
| 89 |
(optional_parameter |
| 90 |
(array_pattern |
| 91 |
(identifier) @variable.parameter)) |
| 92 |
|
| 93 |
(public_field_definition) @punctuation.special |
| 94 |
(this_type) @variable.builtin |
| 95 |
(type_predicate) @keyword.operator |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
[ |
| 101 |
":" |
| 102 |
] @punctuation.delimiter |
| 103 |
|
| 104 |
(optional_parameter "?" @punctuation.special) |
| 105 |
(property_signature "?" @punctuation.special) |
| 106 |
|
| 107 |
(conditional_type ["?" ":"] @operator) |
| 108 |
(ternary_expression ["?" ":"] @operator) |
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
[ |
| 114 |
"abstract" |
| 115 |
"accessor" |
| 116 |
"declare" |
| 117 |
"module" |
| 118 |
"infer" |
| 119 |
"implements" |
| 120 |
"keyof" |
| 121 |
"namespace" |
| 122 |
"override" |
| 123 |
"satisfies" |
| 124 |
"using" |
| 125 |
] @keyword |
| 126 |
|
| 127 |
|
| 128 |
"asserts" @keyword.operator |
| 129 |
|
| 130 |
[ |
| 131 |
"export" |
| 132 |
"from" |
| 133 |
] @keyword.control.import |
| 134 |
|
| 135 |
[ |
| 136 |
"type" |
| 137 |
"interface" |
| 138 |
"enum" |
| 139 |
] @keyword.storage.type |
| 140 |
|
| 141 |
[ |
| 142 |
"public" |
| 143 |
"private" |
| 144 |
"protected" |
| 145 |
"readonly" |
| 146 |
] @keyword.storage.modifier |
| 147 |
|
| 148 |
|
| 149 |
|
| 150 |
|
| 151 |
(type_identifier) @type |
| 152 |
(type_parameter |
| 153 |
name: (type_identifier) @type.parameter) |
| 154 |
(predefined_type) @type.builtin |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
(type_arguments |
| 160 |
[ |
| 161 |
"<" |
| 162 |
">" |
| 163 |
] @punctuation.bracket) |
| 164 |
|
| 165 |
(type_parameters |
| 166 |
[ |
| 167 |
"<" |
| 168 |
">" |
| 169 |
] @punctuation.bracket) |
| 170 |
|
| 171 |
(omitting_type_annotation) @punctuation.special |
| 172 |
(opting_type_annotation) @punctuation.special |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
[ |
| 178 |
(template_literal_type) |
| 179 |
] @string |
| 180 |
|
| 181 |
(import_require_clause |
| 182 |
(identifier) "=" |
| 183 |
("require") @keyword) |
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
(method_signature |
| 188 |
name: (property_identifier) @function.method) |
| 189 |
(abstract_method_signature |
| 190 |
name: (property_identifier) @function.method) |
| 191 |
(property_signature |
| 192 |
name: (property_identifier) @function.method |
| 193 |
type: (type_annotation |
| 194 |
[ |
| 195 |
(function_type) |
| 196 |
(union_type (parenthesized_type (function_type))) |
| 197 |
])) |