@spader/spall-tui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +3636 -0
- package/dist/App.js.map +39 -0
- package/dist/bash-nbhfht5r.scm +56 -0
- package/dist/c-4zy7d3fw.scm +81 -0
- package/dist/c_sharp-tb7n62t2.scm +212 -0
- package/dist/cpp-stxr9ffp.scm +77 -0
- package/dist/css-b1p1h6ys.scm +76 -0
- package/dist/dart-t89b32ej.scm +13 -0
- package/dist/elisp-ax9wx1b9.scm +72 -0
- package/dist/elixir-77300bss.scm +223 -0
- package/dist/elm-k2q5knqb.scm +76 -0
- package/dist/embedded_template-k7ypjkba.scm +12 -0
- package/dist/go-9wx8m64k.scm +123 -0
- package/dist/html-g95aq3vw.scm +13 -0
- package/dist/index.js +3635 -0
- package/dist/index.js.map +39 -0
- package/dist/java-wasz6t7a.scm +149 -0
- package/dist/javascript-cswtymww.scm +204 -0
- package/dist/json-pf4aw8w1.scm +16 -0
- package/dist/kotlin-m6cj2y7m.scm +380 -0
- package/dist/lib/git.js +117 -0
- package/dist/lib/git.js.map +10 -0
- package/dist/lua-7h6jk3pd.scm +204 -0
- package/dist/objc-6yjdwy1z.scm +216 -0
- package/dist/ocaml-jfj520qk.scm +148 -0
- package/dist/parsers/index.d.ts +8 -0
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/php-bds7v5h1.scm +203 -0
- package/dist/python-k2cbtg72.scm +137 -0
- package/dist/ql-qs2vxbeq.scm +154 -0
- package/dist/ruby-3ybh5bp2.scm +154 -0
- package/dist/rust-edtnatpk.scm +161 -0
- package/dist/scala-91f2sb1z.scm +260 -0
- package/dist/src/App.d.ts +6 -0
- package/dist/src/App.d.ts.map +1 -0
- package/dist/src/Review.d.ts +6 -0
- package/dist/src/Review.d.ts.map +1 -0
- package/dist/src/components/CommandPalette.d.ts +2 -0
- package/dist/src/components/CommandPalette.d.ts.map +1 -0
- package/dist/src/components/DiffPanel.d.ts +16 -0
- package/dist/src/components/DiffPanel.d.ts.map +1 -0
- package/dist/src/components/EditorPanel.d.ts +9 -0
- package/dist/src/components/EditorPanel.d.ts.map +1 -0
- package/dist/src/components/ErrorFallback.d.ts +6 -0
- package/dist/src/components/ErrorFallback.d.ts.map +1 -0
- package/dist/src/components/HalfLineShadow.d.ts +18 -0
- package/dist/src/components/HalfLineShadow.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +7 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/sidebar/CommentList.d.ts +10 -0
- package/dist/src/components/sidebar/CommentList.d.ts.map +1 -0
- package/dist/src/components/sidebar/FileList.d.ts +13 -0
- package/dist/src/components/sidebar/FileList.d.ts.map +1 -0
- package/dist/src/components/sidebar/PatchList.d.ts +14 -0
- package/dist/src/components/sidebar/PatchList.d.ts.map +1 -0
- package/dist/src/components/sidebar/ProjectStatus.d.ts +7 -0
- package/dist/src/components/sidebar/ProjectStatus.d.ts.map +1 -0
- package/dist/src/components/sidebar/Section.d.ts +12 -0
- package/dist/src/components/sidebar/Section.d.ts.map +1 -0
- package/dist/src/components/sidebar/ServerStatus.d.ts +2 -0
- package/dist/src/components/sidebar/ServerStatus.d.ts.map +1 -0
- package/dist/src/components/sidebar/index.d.ts +7 -0
- package/dist/src/components/sidebar/index.d.ts.map +1 -0
- package/dist/src/context/command.d.ts +10 -0
- package/dist/src/context/command.d.ts.map +1 -0
- package/dist/src/context/dialog.d.ts +11 -0
- package/dist/src/context/dialog.d.ts.map +1 -0
- package/dist/src/context/exit.d.ts +10 -0
- package/dist/src/context/exit.d.ts.map +1 -0
- package/dist/src/context/review.d.ts +47 -0
- package/dist/src/context/review.d.ts.map +1 -0
- package/dist/src/context/server.d.ts +10 -0
- package/dist/src/context/server.d.ts.map +1 -0
- package/dist/src/context/sidebar.d.ts +13 -0
- package/dist/src/context/sidebar.d.ts.map +1 -0
- package/dist/src/context/theme.d.ts +47 -0
- package/dist/src/context/theme.d.ts.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/diff.d.ts +24 -0
- package/dist/src/lib/diff.d.ts.map +1 -0
- package/dist/src/lib/git.d.ts +15 -0
- package/dist/src/lib/git.d.ts.map +1 -0
- package/dist/src/lib/keybind.d.ts +23 -0
- package/dist/src/lib/keybind.d.ts.map +1 -0
- package/dist/src/lib/tree.d.ts +39 -0
- package/dist/src/lib/tree.d.ts.map +1 -0
- package/dist/src/store/comment.d.ts +20 -0
- package/dist/src/store/comment.d.ts.map +1 -0
- package/dist/src/store/db.d.ts +6 -0
- package/dist/src/store/db.d.ts.map +1 -0
- package/dist/src/store/index.d.ts +7 -0
- package/dist/src/store/index.d.ts.map +1 -0
- package/dist/src/store/patch.d.ts +22 -0
- package/dist/src/store/patch.d.ts.map +1 -0
- package/dist/src/store/repo.d.ts +8 -0
- package/dist/src/store/repo.d.ts.map +1 -0
- package/dist/src/store/review.d.ts +18 -0
- package/dist/src/store/review.d.ts.map +1 -0
- package/dist/store/index.js +303 -0
- package/dist/store/index.js.map +14 -0
- package/dist/swift-a4tt704b.scm +336 -0
- package/dist/toml-hcqfz0bg.scm +53 -0
- package/dist/tsx-c3k3mmc9.scm +239 -0
- package/dist/typescript-hz4pg6ze.scm +239 -0
- package/dist/vue-xbeea1aj.scm +9 -0
- package/dist/yaml-mbfb25g0.scm +79 -0
- package/dist/zig-ds3q8m26.scm +283 -0
- package/package.json +74 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
[
|
|
2
|
+
"."
|
|
3
|
+
";"
|
|
4
|
+
":"
|
|
5
|
+
","
|
|
6
|
+
] @punctuation.delimiter
|
|
7
|
+
|
|
8
|
+
[
|
|
9
|
+
"("
|
|
10
|
+
")"
|
|
11
|
+
"["
|
|
12
|
+
"]"
|
|
13
|
+
"{"
|
|
14
|
+
"}"
|
|
15
|
+
] @punctuation.bracket
|
|
16
|
+
|
|
17
|
+
; Identifiers
|
|
18
|
+
(type_identifier) @type
|
|
19
|
+
|
|
20
|
+
[
|
|
21
|
+
(self_expression)
|
|
22
|
+
(super_expression)
|
|
23
|
+
] @variable.builtin
|
|
24
|
+
|
|
25
|
+
; Declarations
|
|
26
|
+
[
|
|
27
|
+
"func"
|
|
28
|
+
"deinit"
|
|
29
|
+
] @keyword.function
|
|
30
|
+
|
|
31
|
+
[
|
|
32
|
+
(visibility_modifier)
|
|
33
|
+
(member_modifier)
|
|
34
|
+
(function_modifier)
|
|
35
|
+
(property_modifier)
|
|
36
|
+
(parameter_modifier)
|
|
37
|
+
(inheritance_modifier)
|
|
38
|
+
(mutation_modifier)
|
|
39
|
+
] @keyword.modifier
|
|
40
|
+
|
|
41
|
+
(simple_identifier) @variable
|
|
42
|
+
|
|
43
|
+
(function_declaration
|
|
44
|
+
(simple_identifier) @function.method)
|
|
45
|
+
|
|
46
|
+
(protocol_function_declaration
|
|
47
|
+
name: (simple_identifier) @function.method)
|
|
48
|
+
|
|
49
|
+
(init_declaration
|
|
50
|
+
"init" @constructor)
|
|
51
|
+
|
|
52
|
+
(parameter
|
|
53
|
+
external_name: (simple_identifier) @variable.parameter)
|
|
54
|
+
|
|
55
|
+
(parameter
|
|
56
|
+
name: (simple_identifier) @variable.parameter)
|
|
57
|
+
|
|
58
|
+
(type_parameter
|
|
59
|
+
(type_identifier) @variable.parameter)
|
|
60
|
+
|
|
61
|
+
(inheritance_constraint
|
|
62
|
+
(identifier
|
|
63
|
+
(simple_identifier) @variable.parameter))
|
|
64
|
+
|
|
65
|
+
(equality_constraint
|
|
66
|
+
(identifier
|
|
67
|
+
(simple_identifier) @variable.parameter))
|
|
68
|
+
|
|
69
|
+
[
|
|
70
|
+
"protocol"
|
|
71
|
+
"extension"
|
|
72
|
+
"indirect"
|
|
73
|
+
"nonisolated"
|
|
74
|
+
"override"
|
|
75
|
+
"convenience"
|
|
76
|
+
"required"
|
|
77
|
+
"some"
|
|
78
|
+
"any"
|
|
79
|
+
"weak"
|
|
80
|
+
"unowned"
|
|
81
|
+
"didSet"
|
|
82
|
+
"willSet"
|
|
83
|
+
"subscript"
|
|
84
|
+
"let"
|
|
85
|
+
"var"
|
|
86
|
+
(throws)
|
|
87
|
+
(where_keyword)
|
|
88
|
+
(getter_specifier)
|
|
89
|
+
(setter_specifier)
|
|
90
|
+
(modify_specifier)
|
|
91
|
+
(else)
|
|
92
|
+
(as_operator)
|
|
93
|
+
] @keyword
|
|
94
|
+
|
|
95
|
+
[
|
|
96
|
+
"enum"
|
|
97
|
+
"struct"
|
|
98
|
+
"class"
|
|
99
|
+
"typealias"
|
|
100
|
+
] @keyword.type
|
|
101
|
+
|
|
102
|
+
[
|
|
103
|
+
"async"
|
|
104
|
+
"await"
|
|
105
|
+
] @keyword.coroutine
|
|
106
|
+
|
|
107
|
+
(shebang_line) @keyword.directive
|
|
108
|
+
|
|
109
|
+
(class_body
|
|
110
|
+
(property_declaration
|
|
111
|
+
(pattern
|
|
112
|
+
(simple_identifier) @variable.member)))
|
|
113
|
+
|
|
114
|
+
(protocol_property_declaration
|
|
115
|
+
(pattern
|
|
116
|
+
(simple_identifier) @variable.member))
|
|
117
|
+
|
|
118
|
+
(navigation_expression
|
|
119
|
+
(navigation_suffix
|
|
120
|
+
(simple_identifier) @variable.member))
|
|
121
|
+
|
|
122
|
+
(value_argument
|
|
123
|
+
name: (value_argument_label
|
|
124
|
+
(simple_identifier) @variable.member))
|
|
125
|
+
|
|
126
|
+
(import_declaration
|
|
127
|
+
"import" @keyword.import)
|
|
128
|
+
|
|
129
|
+
(enum_entry
|
|
130
|
+
"case" @keyword)
|
|
131
|
+
|
|
132
|
+
(modifiers
|
|
133
|
+
(attribute
|
|
134
|
+
"@" @attribute
|
|
135
|
+
(user_type
|
|
136
|
+
(type_identifier) @attribute)))
|
|
137
|
+
|
|
138
|
+
; Function calls
|
|
139
|
+
(call_expression
|
|
140
|
+
(simple_identifier) @function.call) ; foo()
|
|
141
|
+
|
|
142
|
+
(call_expression
|
|
143
|
+
; foo.bar.baz(): highlight the baz()
|
|
144
|
+
(navigation_expression
|
|
145
|
+
(navigation_suffix
|
|
146
|
+
(simple_identifier) @function.call)))
|
|
147
|
+
|
|
148
|
+
(call_expression
|
|
149
|
+
(prefix_expression
|
|
150
|
+
(simple_identifier) @function.call)) ; .foo()
|
|
151
|
+
|
|
152
|
+
((navigation_expression
|
|
153
|
+
(simple_identifier) @type) ; SomeType.method(): highlight SomeType as a type
|
|
154
|
+
(#match? @type "^[A-Z]"))
|
|
155
|
+
|
|
156
|
+
(directive) @keyword.directive
|
|
157
|
+
|
|
158
|
+
; See https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure/#Keywords-and-Punctuation
|
|
159
|
+
[
|
|
160
|
+
(diagnostic)
|
|
161
|
+
(availability_condition)
|
|
162
|
+
(playground_literal)
|
|
163
|
+
(key_path_string_expression)
|
|
164
|
+
(selector_expression)
|
|
165
|
+
(external_macro_definition)
|
|
166
|
+
] @function.macro
|
|
167
|
+
|
|
168
|
+
(special_literal) @constant.macro
|
|
169
|
+
|
|
170
|
+
; Statements
|
|
171
|
+
(for_statement
|
|
172
|
+
"for" @keyword.repeat)
|
|
173
|
+
|
|
174
|
+
(for_statement
|
|
175
|
+
"in" @keyword.repeat)
|
|
176
|
+
|
|
177
|
+
[
|
|
178
|
+
"while"
|
|
179
|
+
"repeat"
|
|
180
|
+
"continue"
|
|
181
|
+
"break"
|
|
182
|
+
] @keyword.repeat
|
|
183
|
+
|
|
184
|
+
(guard_statement
|
|
185
|
+
"guard" @keyword.conditional)
|
|
186
|
+
|
|
187
|
+
(if_statement
|
|
188
|
+
"if" @keyword.conditional)
|
|
189
|
+
|
|
190
|
+
(switch_statement
|
|
191
|
+
"switch" @keyword.conditional)
|
|
192
|
+
|
|
193
|
+
(switch_entry
|
|
194
|
+
"case" @keyword)
|
|
195
|
+
|
|
196
|
+
(switch_entry
|
|
197
|
+
"fallthrough" @keyword)
|
|
198
|
+
|
|
199
|
+
(switch_entry
|
|
200
|
+
(default_keyword) @keyword)
|
|
201
|
+
|
|
202
|
+
"return" @keyword.return
|
|
203
|
+
|
|
204
|
+
(ternary_expression
|
|
205
|
+
[
|
|
206
|
+
"?"
|
|
207
|
+
":"
|
|
208
|
+
] @keyword.conditional.ternary)
|
|
209
|
+
|
|
210
|
+
[
|
|
211
|
+
(try_operator)
|
|
212
|
+
"do"
|
|
213
|
+
(throw_keyword)
|
|
214
|
+
(catch_keyword)
|
|
215
|
+
] @keyword.exception
|
|
216
|
+
|
|
217
|
+
(statement_label) @label
|
|
218
|
+
|
|
219
|
+
; Comments
|
|
220
|
+
[
|
|
221
|
+
(comment)
|
|
222
|
+
(multiline_comment)
|
|
223
|
+
] @comment @spell
|
|
224
|
+
|
|
225
|
+
((comment) @comment.documentation
|
|
226
|
+
(#match? @comment.documentation "^///[^/]"))
|
|
227
|
+
|
|
228
|
+
((comment) @comment.documentation
|
|
229
|
+
(#match? @comment.documentation "^///$"))
|
|
230
|
+
|
|
231
|
+
((multiline_comment) @comment.documentation
|
|
232
|
+
(#match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
|
233
|
+
|
|
234
|
+
; String literals
|
|
235
|
+
(line_str_text) @string
|
|
236
|
+
|
|
237
|
+
(str_escaped_char) @string.escape
|
|
238
|
+
|
|
239
|
+
(multi_line_str_text) @string
|
|
240
|
+
|
|
241
|
+
(raw_str_part) @string
|
|
242
|
+
|
|
243
|
+
(raw_str_end_part) @string
|
|
244
|
+
|
|
245
|
+
(line_string_literal
|
|
246
|
+
[
|
|
247
|
+
"\\("
|
|
248
|
+
")"
|
|
249
|
+
] @punctuation.special)
|
|
250
|
+
|
|
251
|
+
(multi_line_string_literal
|
|
252
|
+
[
|
|
253
|
+
"\\("
|
|
254
|
+
")"
|
|
255
|
+
] @punctuation.special)
|
|
256
|
+
|
|
257
|
+
(raw_str_interpolation
|
|
258
|
+
[
|
|
259
|
+
(raw_str_interpolation_start)
|
|
260
|
+
")"
|
|
261
|
+
] @punctuation.special)
|
|
262
|
+
|
|
263
|
+
[
|
|
264
|
+
"\""
|
|
265
|
+
"\"\"\""
|
|
266
|
+
] @string
|
|
267
|
+
|
|
268
|
+
; Lambda literals
|
|
269
|
+
(lambda_literal
|
|
270
|
+
"in" @keyword.operator)
|
|
271
|
+
|
|
272
|
+
; Basic literals
|
|
273
|
+
[
|
|
274
|
+
(integer_literal)
|
|
275
|
+
(hex_literal)
|
|
276
|
+
(oct_literal)
|
|
277
|
+
(bin_literal)
|
|
278
|
+
] @number
|
|
279
|
+
|
|
280
|
+
(real_literal) @number.float
|
|
281
|
+
|
|
282
|
+
(boolean_literal) @boolean
|
|
283
|
+
|
|
284
|
+
"nil" @constant.builtin
|
|
285
|
+
|
|
286
|
+
(wildcard_pattern) @character.special
|
|
287
|
+
|
|
288
|
+
; Regex literals
|
|
289
|
+
(regex_literal) @string.regexp
|
|
290
|
+
|
|
291
|
+
; Operators
|
|
292
|
+
(custom_operator) @operator
|
|
293
|
+
|
|
294
|
+
[
|
|
295
|
+
"+"
|
|
296
|
+
"-"
|
|
297
|
+
"*"
|
|
298
|
+
"/"
|
|
299
|
+
"%"
|
|
300
|
+
"="
|
|
301
|
+
"+="
|
|
302
|
+
"-="
|
|
303
|
+
"*="
|
|
304
|
+
"/="
|
|
305
|
+
"<"
|
|
306
|
+
">"
|
|
307
|
+
"<<"
|
|
308
|
+
">>"
|
|
309
|
+
"<="
|
|
310
|
+
">="
|
|
311
|
+
"++"
|
|
312
|
+
"--"
|
|
313
|
+
"^"
|
|
314
|
+
"&"
|
|
315
|
+
"&&"
|
|
316
|
+
"|"
|
|
317
|
+
"||"
|
|
318
|
+
"~"
|
|
319
|
+
"%="
|
|
320
|
+
"!="
|
|
321
|
+
"!=="
|
|
322
|
+
"=="
|
|
323
|
+
"==="
|
|
324
|
+
"?"
|
|
325
|
+
"??"
|
|
326
|
+
"->"
|
|
327
|
+
"..<"
|
|
328
|
+
"..."
|
|
329
|
+
(bang)
|
|
330
|
+
] @operator
|
|
331
|
+
|
|
332
|
+
(type_arguments
|
|
333
|
+
[
|
|
334
|
+
"<"
|
|
335
|
+
">"
|
|
336
|
+
] @punctuation.bracket)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
; Properties
|
|
2
|
+
;-----------
|
|
3
|
+
|
|
4
|
+
(bare_key) @type
|
|
5
|
+
|
|
6
|
+
(quoted_key) @string
|
|
7
|
+
|
|
8
|
+
(pair
|
|
9
|
+
(bare_key)) @property
|
|
10
|
+
|
|
11
|
+
(pair
|
|
12
|
+
(dotted_key
|
|
13
|
+
(bare_key) @property))
|
|
14
|
+
|
|
15
|
+
; Literals
|
|
16
|
+
;---------
|
|
17
|
+
|
|
18
|
+
(boolean) @boolean
|
|
19
|
+
|
|
20
|
+
(comment) @comment
|
|
21
|
+
|
|
22
|
+
(string) @string
|
|
23
|
+
|
|
24
|
+
[
|
|
25
|
+
(integer)
|
|
26
|
+
(float)
|
|
27
|
+
] @number
|
|
28
|
+
|
|
29
|
+
[
|
|
30
|
+
(offset_date_time)
|
|
31
|
+
(local_date_time)
|
|
32
|
+
(local_date)
|
|
33
|
+
(local_time)
|
|
34
|
+
] @string.special
|
|
35
|
+
|
|
36
|
+
; Punctuation
|
|
37
|
+
;------------
|
|
38
|
+
|
|
39
|
+
[
|
|
40
|
+
"."
|
|
41
|
+
","
|
|
42
|
+
] @punctuation.delimiter
|
|
43
|
+
|
|
44
|
+
"=" @operator
|
|
45
|
+
|
|
46
|
+
[
|
|
47
|
+
"["
|
|
48
|
+
"]"
|
|
49
|
+
"[["
|
|
50
|
+
"]]"
|
|
51
|
+
"{"
|
|
52
|
+
"}"
|
|
53
|
+
] @punctuation.bracket
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
; Variables
|
|
2
|
+
;----------
|
|
3
|
+
|
|
4
|
+
(identifier) @variable
|
|
5
|
+
|
|
6
|
+
; Properties
|
|
7
|
+
;-----------
|
|
8
|
+
|
|
9
|
+
(property_identifier) @property
|
|
10
|
+
|
|
11
|
+
; Function and method definitions
|
|
12
|
+
;--------------------------------
|
|
13
|
+
|
|
14
|
+
(function_expression
|
|
15
|
+
name: (identifier) @function)
|
|
16
|
+
(function_declaration
|
|
17
|
+
name: (identifier) @function)
|
|
18
|
+
(method_definition
|
|
19
|
+
name: (property_identifier) @function.method)
|
|
20
|
+
|
|
21
|
+
(pair
|
|
22
|
+
key: (property_identifier) @function.method
|
|
23
|
+
value: [(function_expression) (arrow_function)])
|
|
24
|
+
|
|
25
|
+
(assignment_expression
|
|
26
|
+
left: (member_expression
|
|
27
|
+
property: (property_identifier) @function.method)
|
|
28
|
+
right: [(function_expression) (arrow_function)])
|
|
29
|
+
|
|
30
|
+
(variable_declarator
|
|
31
|
+
name: (identifier) @function
|
|
32
|
+
value: [(function_expression) (arrow_function)])
|
|
33
|
+
|
|
34
|
+
(assignment_expression
|
|
35
|
+
left: (identifier) @function
|
|
36
|
+
right: [(function_expression) (arrow_function)])
|
|
37
|
+
|
|
38
|
+
; Function and method calls
|
|
39
|
+
;--------------------------
|
|
40
|
+
|
|
41
|
+
(call_expression
|
|
42
|
+
function: (identifier) @function)
|
|
43
|
+
|
|
44
|
+
(call_expression
|
|
45
|
+
function: (member_expression
|
|
46
|
+
property: (property_identifier) @function.method))
|
|
47
|
+
|
|
48
|
+
; Special identifiers
|
|
49
|
+
;--------------------
|
|
50
|
+
|
|
51
|
+
((identifier) @constructor
|
|
52
|
+
(#match? @constructor "^[A-Z]"))
|
|
53
|
+
|
|
54
|
+
([
|
|
55
|
+
(identifier)
|
|
56
|
+
(shorthand_property_identifier)
|
|
57
|
+
(shorthand_property_identifier_pattern)
|
|
58
|
+
] @constant
|
|
59
|
+
(#match? @constant "^[A-Z_][A-Z\\d_]+$"))
|
|
60
|
+
|
|
61
|
+
((identifier) @variable.builtin
|
|
62
|
+
(#match? @variable.builtin "^(arguments|module|console|window|document)$")
|
|
63
|
+
(#is-not? local))
|
|
64
|
+
|
|
65
|
+
((identifier) @function.builtin
|
|
66
|
+
(#eq? @function.builtin "require")
|
|
67
|
+
(#is-not? local))
|
|
68
|
+
|
|
69
|
+
; Literals
|
|
70
|
+
;---------
|
|
71
|
+
|
|
72
|
+
(this) @variable.builtin
|
|
73
|
+
(super) @variable.builtin
|
|
74
|
+
|
|
75
|
+
[
|
|
76
|
+
(true)
|
|
77
|
+
(false)
|
|
78
|
+
(null)
|
|
79
|
+
(undefined)
|
|
80
|
+
] @constant.builtin
|
|
81
|
+
|
|
82
|
+
(comment) @comment
|
|
83
|
+
|
|
84
|
+
[
|
|
85
|
+
(string)
|
|
86
|
+
(template_string)
|
|
87
|
+
] @string
|
|
88
|
+
|
|
89
|
+
(regex) @string.special
|
|
90
|
+
(number) @number
|
|
91
|
+
|
|
92
|
+
; Tokens
|
|
93
|
+
;-------
|
|
94
|
+
|
|
95
|
+
[
|
|
96
|
+
";"
|
|
97
|
+
(optional_chain)
|
|
98
|
+
"."
|
|
99
|
+
","
|
|
100
|
+
] @punctuation.delimiter
|
|
101
|
+
|
|
102
|
+
[
|
|
103
|
+
"-"
|
|
104
|
+
"--"
|
|
105
|
+
"-="
|
|
106
|
+
"+"
|
|
107
|
+
"++"
|
|
108
|
+
"+="
|
|
109
|
+
"*"
|
|
110
|
+
"*="
|
|
111
|
+
"**"
|
|
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
|
+
] @operator
|
|
148
|
+
|
|
149
|
+
[
|
|
150
|
+
"("
|
|
151
|
+
")"
|
|
152
|
+
"["
|
|
153
|
+
"]"
|
|
154
|
+
"{"
|
|
155
|
+
"}"
|
|
156
|
+
] @punctuation.bracket
|
|
157
|
+
|
|
158
|
+
(template_substitution
|
|
159
|
+
"${" @punctuation.special
|
|
160
|
+
"}" @punctuation.special) @embedded
|
|
161
|
+
|
|
162
|
+
[
|
|
163
|
+
"as"
|
|
164
|
+
"async"
|
|
165
|
+
"await"
|
|
166
|
+
"break"
|
|
167
|
+
"case"
|
|
168
|
+
"catch"
|
|
169
|
+
"class"
|
|
170
|
+
"const"
|
|
171
|
+
"continue"
|
|
172
|
+
"debugger"
|
|
173
|
+
"default"
|
|
174
|
+
"delete"
|
|
175
|
+
"do"
|
|
176
|
+
"else"
|
|
177
|
+
"export"
|
|
178
|
+
"extends"
|
|
179
|
+
"finally"
|
|
180
|
+
"for"
|
|
181
|
+
"from"
|
|
182
|
+
"function"
|
|
183
|
+
"get"
|
|
184
|
+
"if"
|
|
185
|
+
"import"
|
|
186
|
+
"in"
|
|
187
|
+
"instanceof"
|
|
188
|
+
"let"
|
|
189
|
+
"new"
|
|
190
|
+
"of"
|
|
191
|
+
"return"
|
|
192
|
+
"set"
|
|
193
|
+
"static"
|
|
194
|
+
"switch"
|
|
195
|
+
"target"
|
|
196
|
+
"throw"
|
|
197
|
+
"try"
|
|
198
|
+
"typeof"
|
|
199
|
+
"var"
|
|
200
|
+
"void"
|
|
201
|
+
"while"
|
|
202
|
+
"with"
|
|
203
|
+
"yield"
|
|
204
|
+
] @keyword
|
|
205
|
+
|
|
206
|
+
; TypeScript/TSX-specific
|
|
207
|
+
;------------------------
|
|
208
|
+
|
|
209
|
+
; Types
|
|
210
|
+
|
|
211
|
+
(type_identifier) @type
|
|
212
|
+
(predefined_type) @type.builtin
|
|
213
|
+
|
|
214
|
+
(type_arguments
|
|
215
|
+
"<" @punctuation.bracket
|
|
216
|
+
">" @punctuation.bracket)
|
|
217
|
+
|
|
218
|
+
; Variables
|
|
219
|
+
|
|
220
|
+
(required_parameter (identifier) @variable.parameter)
|
|
221
|
+
(optional_parameter (identifier) @variable.parameter)
|
|
222
|
+
|
|
223
|
+
; Keywords
|
|
224
|
+
|
|
225
|
+
[ "abstract"
|
|
226
|
+
"declare"
|
|
227
|
+
"enum"
|
|
228
|
+
"implements"
|
|
229
|
+
"interface"
|
|
230
|
+
"keyof"
|
|
231
|
+
"namespace"
|
|
232
|
+
"private"
|
|
233
|
+
"protected"
|
|
234
|
+
"public"
|
|
235
|
+
"type"
|
|
236
|
+
"readonly"
|
|
237
|
+
"override"
|
|
238
|
+
"satisfies"
|
|
239
|
+
] @keyword
|