@kmugalkhod/lightcode 0.17.3 → 0.18.1
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/README.md +197 -197
- package/assets/web/index-e40p9zj3.css +1 -0
- package/assets/web/index-h22g370d.js +183 -0
- package/assets/web/index.html +23 -23
- package/cli.js +5243 -4663
- package/package.json +1 -1
- package/server.js +941 -183
- package/assets/grammars/c/highlights.scm +0 -341
- package/assets/grammars/c/tree-sitter-c.wasm +0 -0
- package/assets/grammars/cpp/highlights.scm +0 -74
- package/assets/grammars/cpp/tree-sitter-cpp.wasm +0 -0
- package/assets/grammars/css/highlights.scm +0 -109
- package/assets/grammars/css/tree-sitter-css.wasm +0 -0
- package/assets/grammars/go/highlights.scm +0 -123
- package/assets/grammars/go/tree-sitter-go.wasm +0 -0
- package/assets/grammars/html/highlights.scm +0 -7
- package/assets/grammars/html/tree-sitter-html.wasm +0 -0
- package/assets/grammars/json/highlights.scm +0 -38
- package/assets/grammars/json/tree-sitter-json.wasm +0 -0
- package/assets/grammars/python/highlights.scm +0 -443
- package/assets/grammars/python/tree-sitter-python.wasm +0 -0
- package/assets/grammars/rust/highlights.scm +0 -159
- package/assets/grammars/rust/tree-sitter-rust.wasm +0 -0
- package/assets/grammars/yaml/highlights.scm +0 -99
- package/assets/grammars/yaml/tree-sitter-yaml.wasm +0 -0
- package/assets/web/index-7ve7dt7b.css +0 -1
- package/assets/web/index-n2g1090y.js +0 -171
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
; Lower priority to prefer @variable.parameter when identifier appears in parameter_declaration.
|
|
2
|
-
((identifier) @variable
|
|
3
|
-
(#set! priority 95))
|
|
4
|
-
|
|
5
|
-
(preproc_def
|
|
6
|
-
(preproc_arg) @variable)
|
|
7
|
-
|
|
8
|
-
[
|
|
9
|
-
"default"
|
|
10
|
-
"goto"
|
|
11
|
-
"asm"
|
|
12
|
-
"__asm__"
|
|
13
|
-
] @keyword
|
|
14
|
-
|
|
15
|
-
[
|
|
16
|
-
"enum"
|
|
17
|
-
"struct"
|
|
18
|
-
"union"
|
|
19
|
-
"typedef"
|
|
20
|
-
] @keyword.type
|
|
21
|
-
|
|
22
|
-
[
|
|
23
|
-
"sizeof"
|
|
24
|
-
"offsetof"
|
|
25
|
-
] @keyword.operator
|
|
26
|
-
|
|
27
|
-
(alignof_expression
|
|
28
|
-
.
|
|
29
|
-
_ @keyword.operator)
|
|
30
|
-
|
|
31
|
-
"return" @keyword.return
|
|
32
|
-
|
|
33
|
-
[
|
|
34
|
-
"while"
|
|
35
|
-
"for"
|
|
36
|
-
"do"
|
|
37
|
-
"continue"
|
|
38
|
-
"break"
|
|
39
|
-
] @keyword.repeat
|
|
40
|
-
|
|
41
|
-
[
|
|
42
|
-
"if"
|
|
43
|
-
"else"
|
|
44
|
-
"case"
|
|
45
|
-
"switch"
|
|
46
|
-
] @keyword.conditional
|
|
47
|
-
|
|
48
|
-
[
|
|
49
|
-
"#if"
|
|
50
|
-
"#ifdef"
|
|
51
|
-
"#ifndef"
|
|
52
|
-
"#else"
|
|
53
|
-
"#elif"
|
|
54
|
-
"#endif"
|
|
55
|
-
"#elifdef"
|
|
56
|
-
"#elifndef"
|
|
57
|
-
(preproc_directive)
|
|
58
|
-
] @keyword.directive
|
|
59
|
-
|
|
60
|
-
"#define" @keyword.directive.define
|
|
61
|
-
|
|
62
|
-
"#include" @keyword.import
|
|
63
|
-
|
|
64
|
-
[
|
|
65
|
-
";"
|
|
66
|
-
":"
|
|
67
|
-
","
|
|
68
|
-
"."
|
|
69
|
-
"::"
|
|
70
|
-
] @punctuation.delimiter
|
|
71
|
-
|
|
72
|
-
"..." @punctuation.special
|
|
73
|
-
|
|
74
|
-
[
|
|
75
|
-
"("
|
|
76
|
-
")"
|
|
77
|
-
"["
|
|
78
|
-
"]"
|
|
79
|
-
"{"
|
|
80
|
-
"}"
|
|
81
|
-
] @punctuation.bracket
|
|
82
|
-
|
|
83
|
-
[
|
|
84
|
-
"="
|
|
85
|
-
"-"
|
|
86
|
-
"*"
|
|
87
|
-
"/"
|
|
88
|
-
"+"
|
|
89
|
-
"%"
|
|
90
|
-
"~"
|
|
91
|
-
"|"
|
|
92
|
-
"&"
|
|
93
|
-
"^"
|
|
94
|
-
"<<"
|
|
95
|
-
">>"
|
|
96
|
-
"->"
|
|
97
|
-
"<"
|
|
98
|
-
"<="
|
|
99
|
-
">="
|
|
100
|
-
">"
|
|
101
|
-
"=="
|
|
102
|
-
"!="
|
|
103
|
-
"!"
|
|
104
|
-
"&&"
|
|
105
|
-
"||"
|
|
106
|
-
"-="
|
|
107
|
-
"+="
|
|
108
|
-
"*="
|
|
109
|
-
"/="
|
|
110
|
-
"%="
|
|
111
|
-
"|="
|
|
112
|
-
"&="
|
|
113
|
-
"^="
|
|
114
|
-
">>="
|
|
115
|
-
"<<="
|
|
116
|
-
"--"
|
|
117
|
-
"++"
|
|
118
|
-
] @operator
|
|
119
|
-
|
|
120
|
-
; Make sure the comma operator is given a highlight group after the comma
|
|
121
|
-
; punctuator so the operator is highlighted properly.
|
|
122
|
-
(comma_expression
|
|
123
|
-
"," @operator)
|
|
124
|
-
|
|
125
|
-
[
|
|
126
|
-
(true)
|
|
127
|
-
(false)
|
|
128
|
-
] @boolean
|
|
129
|
-
|
|
130
|
-
(conditional_expression
|
|
131
|
-
[
|
|
132
|
-
"?"
|
|
133
|
-
":"
|
|
134
|
-
] @keyword.conditional.ternary)
|
|
135
|
-
|
|
136
|
-
(string_literal) @string
|
|
137
|
-
|
|
138
|
-
(system_lib_string) @string
|
|
139
|
-
|
|
140
|
-
(escape_sequence) @string.escape
|
|
141
|
-
|
|
142
|
-
(null) @constant.builtin
|
|
143
|
-
|
|
144
|
-
(number_literal) @number
|
|
145
|
-
|
|
146
|
-
(char_literal) @character
|
|
147
|
-
|
|
148
|
-
(preproc_defined) @function.macro
|
|
149
|
-
|
|
150
|
-
((field_expression
|
|
151
|
-
(field_identifier) @property) @_parent
|
|
152
|
-
(#not-has-parent? @_parent template_method function_declarator call_expression))
|
|
153
|
-
|
|
154
|
-
(field_designator) @property
|
|
155
|
-
|
|
156
|
-
((field_identifier) @property
|
|
157
|
-
(#has-ancestor? @property field_declaration)
|
|
158
|
-
(#not-has-ancestor? @property function_declarator))
|
|
159
|
-
|
|
160
|
-
(statement_identifier) @label
|
|
161
|
-
|
|
162
|
-
(declaration
|
|
163
|
-
type: (type_identifier) @_type
|
|
164
|
-
declarator: (identifier) @label
|
|
165
|
-
(#eq? @_type "__label__"))
|
|
166
|
-
|
|
167
|
-
[
|
|
168
|
-
(type_identifier)
|
|
169
|
-
(type_descriptor)
|
|
170
|
-
] @type
|
|
171
|
-
|
|
172
|
-
(storage_class_specifier) @keyword.modifier
|
|
173
|
-
|
|
174
|
-
[
|
|
175
|
-
(type_qualifier)
|
|
176
|
-
(gnu_asm_qualifier)
|
|
177
|
-
"__extension__"
|
|
178
|
-
] @keyword.modifier
|
|
179
|
-
|
|
180
|
-
(linkage_specification
|
|
181
|
-
"extern" @keyword.modifier)
|
|
182
|
-
|
|
183
|
-
(type_definition
|
|
184
|
-
declarator: (type_identifier) @type.definition)
|
|
185
|
-
|
|
186
|
-
(primitive_type) @type.builtin
|
|
187
|
-
|
|
188
|
-
(sized_type_specifier
|
|
189
|
-
_ @type.builtin
|
|
190
|
-
type: _?)
|
|
191
|
-
|
|
192
|
-
((identifier) @constant
|
|
193
|
-
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
|
|
194
|
-
|
|
195
|
-
(preproc_def
|
|
196
|
-
(preproc_arg) @constant
|
|
197
|
-
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
|
|
198
|
-
|
|
199
|
-
(enumerator
|
|
200
|
-
name: (identifier) @constant)
|
|
201
|
-
|
|
202
|
-
(case_statement
|
|
203
|
-
value: (identifier) @constant)
|
|
204
|
-
|
|
205
|
-
((identifier) @constant.builtin
|
|
206
|
-
; format-ignore
|
|
207
|
-
(#any-of? @constant.builtin
|
|
208
|
-
"stderr" "stdin" "stdout"
|
|
209
|
-
"__FILE__" "__LINE__" "__DATE__" "__TIME__"
|
|
210
|
-
"__STDC__" "__STDC_VERSION__" "__STDC_HOSTED__"
|
|
211
|
-
"__cplusplus" "__OBJC__" "__ASSEMBLER__"
|
|
212
|
-
"__BASE_FILE__" "__FILE_NAME__" "__INCLUDE_LEVEL__"
|
|
213
|
-
"__TIMESTAMP__" "__clang__" "__clang_major__"
|
|
214
|
-
"__clang_minor__" "__clang_patchlevel__"
|
|
215
|
-
"__clang_version__" "__clang_literal_encoding__"
|
|
216
|
-
"__clang_wide_literal_encoding__"
|
|
217
|
-
"__FUNCTION__" "__func__" "__PRETTY_FUNCTION__"
|
|
218
|
-
"__VA_ARGS__" "__VA_OPT__"))
|
|
219
|
-
|
|
220
|
-
(preproc_def
|
|
221
|
-
(preproc_arg) @constant.builtin
|
|
222
|
-
; format-ignore
|
|
223
|
-
(#any-of? @constant.builtin
|
|
224
|
-
"stderr" "stdin" "stdout"
|
|
225
|
-
"__FILE__" "__LINE__" "__DATE__" "__TIME__"
|
|
226
|
-
"__STDC__" "__STDC_VERSION__" "__STDC_HOSTED__"
|
|
227
|
-
"__cplusplus" "__OBJC__" "__ASSEMBLER__"
|
|
228
|
-
"__BASE_FILE__" "__FILE_NAME__" "__INCLUDE_LEVEL__"
|
|
229
|
-
"__TIMESTAMP__" "__clang__" "__clang_major__"
|
|
230
|
-
"__clang_minor__" "__clang_patchlevel__"
|
|
231
|
-
"__clang_version__" "__clang_literal_encoding__"
|
|
232
|
-
"__clang_wide_literal_encoding__"
|
|
233
|
-
"__FUNCTION__" "__func__" "__PRETTY_FUNCTION__"
|
|
234
|
-
"__VA_ARGS__" "__VA_OPT__"))
|
|
235
|
-
|
|
236
|
-
(attribute_specifier
|
|
237
|
-
(argument_list
|
|
238
|
-
(identifier) @variable.builtin))
|
|
239
|
-
|
|
240
|
-
(attribute_specifier
|
|
241
|
-
(argument_list
|
|
242
|
-
(call_expression
|
|
243
|
-
function: (identifier) @variable.builtin)))
|
|
244
|
-
|
|
245
|
-
((call_expression
|
|
246
|
-
function: (identifier) @function.builtin)
|
|
247
|
-
(#lua-match? @function.builtin "^__builtin_"))
|
|
248
|
-
|
|
249
|
-
((call_expression
|
|
250
|
-
function: (identifier) @function.builtin)
|
|
251
|
-
(#has-ancestor? @function.builtin attribute_specifier))
|
|
252
|
-
|
|
253
|
-
; Preproc def / undef
|
|
254
|
-
(preproc_def
|
|
255
|
-
name: (_) @constant.macro)
|
|
256
|
-
|
|
257
|
-
(preproc_call
|
|
258
|
-
directive: (preproc_directive) @_u
|
|
259
|
-
argument: (_) @constant.macro
|
|
260
|
-
(#eq? @_u "#undef"))
|
|
261
|
-
|
|
262
|
-
(preproc_ifdef
|
|
263
|
-
name: (identifier) @constant.macro)
|
|
264
|
-
|
|
265
|
-
(preproc_elifdef
|
|
266
|
-
name: (identifier) @constant.macro)
|
|
267
|
-
|
|
268
|
-
(preproc_defined
|
|
269
|
-
(identifier) @constant.macro)
|
|
270
|
-
|
|
271
|
-
(call_expression
|
|
272
|
-
function: (identifier) @function.call)
|
|
273
|
-
|
|
274
|
-
(call_expression
|
|
275
|
-
function: (field_expression
|
|
276
|
-
field: (field_identifier) @function.call))
|
|
277
|
-
|
|
278
|
-
(function_declarator
|
|
279
|
-
declarator: (identifier) @function)
|
|
280
|
-
|
|
281
|
-
(function_declarator
|
|
282
|
-
declarator: (parenthesized_declarator
|
|
283
|
-
(pointer_declarator
|
|
284
|
-
declarator: (field_identifier) @function)))
|
|
285
|
-
|
|
286
|
-
(preproc_function_def
|
|
287
|
-
name: (identifier) @function.macro)
|
|
288
|
-
|
|
289
|
-
(comment) @comment @spell
|
|
290
|
-
|
|
291
|
-
((comment) @comment.documentation
|
|
292
|
-
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
|
293
|
-
|
|
294
|
-
; Parameters
|
|
295
|
-
(parameter_declaration
|
|
296
|
-
declarator: (identifier) @variable.parameter)
|
|
297
|
-
|
|
298
|
-
(parameter_declaration
|
|
299
|
-
declarator: (array_declarator) @variable.parameter)
|
|
300
|
-
|
|
301
|
-
(parameter_declaration
|
|
302
|
-
declarator: (pointer_declarator) @variable.parameter)
|
|
303
|
-
|
|
304
|
-
; K&R functions
|
|
305
|
-
; To enable support for K&R functions,
|
|
306
|
-
; add the following lines to your own query config and uncomment them.
|
|
307
|
-
; They are commented out as they'll conflict with C++
|
|
308
|
-
; Note that you'll need to have `; extends` at the top of your query file.
|
|
309
|
-
;
|
|
310
|
-
; (parameter_list (identifier) @variable.parameter)
|
|
311
|
-
;
|
|
312
|
-
; (function_definition
|
|
313
|
-
; declarator: _
|
|
314
|
-
; (declaration
|
|
315
|
-
; declarator: (identifier) @variable.parameter))
|
|
316
|
-
;
|
|
317
|
-
; (function_definition
|
|
318
|
-
; declarator: _
|
|
319
|
-
; (declaration
|
|
320
|
-
; declarator: (array_declarator) @variable.parameter))
|
|
321
|
-
;
|
|
322
|
-
; (function_definition
|
|
323
|
-
; declarator: _
|
|
324
|
-
; (declaration
|
|
325
|
-
; declarator: (pointer_declarator) @variable.parameter))
|
|
326
|
-
(preproc_params
|
|
327
|
-
(identifier) @variable.parameter)
|
|
328
|
-
|
|
329
|
-
[
|
|
330
|
-
"__attribute__"
|
|
331
|
-
"__declspec"
|
|
332
|
-
"__based"
|
|
333
|
-
"__cdecl"
|
|
334
|
-
"__clrcall"
|
|
335
|
-
"__stdcall"
|
|
336
|
-
"__fastcall"
|
|
337
|
-
"__thiscall"
|
|
338
|
-
"__vectorcall"
|
|
339
|
-
(ms_pointer_modifier)
|
|
340
|
-
(attribute_declaration)
|
|
341
|
-
] @attribute
|
|
Binary file
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
; Functions
|
|
2
|
-
|
|
3
|
-
(call_expression
|
|
4
|
-
function: (qualified_identifier
|
|
5
|
-
name: (identifier) @function))
|
|
6
|
-
|
|
7
|
-
(template_function
|
|
8
|
-
name: (identifier) @function)
|
|
9
|
-
|
|
10
|
-
(template_method
|
|
11
|
-
name: (field_identifier) @function)
|
|
12
|
-
|
|
13
|
-
(template_function
|
|
14
|
-
name: (identifier) @function)
|
|
15
|
-
|
|
16
|
-
(function_declarator
|
|
17
|
-
declarator: (qualified_identifier
|
|
18
|
-
name: (identifier) @function))
|
|
19
|
-
|
|
20
|
-
(function_declarator
|
|
21
|
-
declarator: (qualified_identifier
|
|
22
|
-
name: (identifier) @function))
|
|
23
|
-
|
|
24
|
-
(function_declarator
|
|
25
|
-
declarator: (field_identifier) @function)
|
|
26
|
-
|
|
27
|
-
; Types
|
|
28
|
-
|
|
29
|
-
((namespace_identifier) @type
|
|
30
|
-
(#match? @type "^[A-Z]"))
|
|
31
|
-
|
|
32
|
-
(auto) @type
|
|
33
|
-
|
|
34
|
-
; Constants
|
|
35
|
-
|
|
36
|
-
(this) @variable.builtin
|
|
37
|
-
(null "nullptr" @constant)
|
|
38
|
-
|
|
39
|
-
; Keywords
|
|
40
|
-
|
|
41
|
-
[
|
|
42
|
-
"catch"
|
|
43
|
-
"class"
|
|
44
|
-
"co_await"
|
|
45
|
-
"co_return"
|
|
46
|
-
"co_yield"
|
|
47
|
-
"constexpr"
|
|
48
|
-
"constinit"
|
|
49
|
-
"consteval"
|
|
50
|
-
"delete"
|
|
51
|
-
"explicit"
|
|
52
|
-
"final"
|
|
53
|
-
"friend"
|
|
54
|
-
"mutable"
|
|
55
|
-
"namespace"
|
|
56
|
-
"noexcept"
|
|
57
|
-
"new"
|
|
58
|
-
"override"
|
|
59
|
-
"private"
|
|
60
|
-
"protected"
|
|
61
|
-
"public"
|
|
62
|
-
"template"
|
|
63
|
-
"throw"
|
|
64
|
-
"try"
|
|
65
|
-
"typename"
|
|
66
|
-
"using"
|
|
67
|
-
"virtual"
|
|
68
|
-
"concept"
|
|
69
|
-
"requires"
|
|
70
|
-
] @keyword
|
|
71
|
-
|
|
72
|
-
; Strings
|
|
73
|
-
|
|
74
|
-
(raw_string_literal) @string
|
|
Binary file
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
"@media"
|
|
3
|
-
"@charset"
|
|
4
|
-
"@namespace"
|
|
5
|
-
"@supports"
|
|
6
|
-
"@keyframes"
|
|
7
|
-
(at_keyword)
|
|
8
|
-
] @keyword.directive
|
|
9
|
-
|
|
10
|
-
"@import" @keyword.import
|
|
11
|
-
|
|
12
|
-
[
|
|
13
|
-
(to)
|
|
14
|
-
(from)
|
|
15
|
-
] @keyword
|
|
16
|
-
|
|
17
|
-
(comment) @comment @spell
|
|
18
|
-
|
|
19
|
-
(tag_name) @tag
|
|
20
|
-
|
|
21
|
-
(class_name) @type
|
|
22
|
-
|
|
23
|
-
(id_name) @constant
|
|
24
|
-
|
|
25
|
-
[
|
|
26
|
-
(property_name)
|
|
27
|
-
(feature_name)
|
|
28
|
-
] @property
|
|
29
|
-
|
|
30
|
-
[
|
|
31
|
-
(nesting_selector)
|
|
32
|
-
(universal_selector)
|
|
33
|
-
] @character.special
|
|
34
|
-
|
|
35
|
-
(function_name) @function
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
"~"
|
|
39
|
-
">"
|
|
40
|
-
"+"
|
|
41
|
-
"-"
|
|
42
|
-
"*"
|
|
43
|
-
"/"
|
|
44
|
-
"="
|
|
45
|
-
"^="
|
|
46
|
-
"|="
|
|
47
|
-
"~="
|
|
48
|
-
"$="
|
|
49
|
-
"*="
|
|
50
|
-
] @operator
|
|
51
|
-
|
|
52
|
-
[
|
|
53
|
-
"and"
|
|
54
|
-
"or"
|
|
55
|
-
"not"
|
|
56
|
-
"only"
|
|
57
|
-
] @keyword.operator
|
|
58
|
-
|
|
59
|
-
(important) @keyword.modifier
|
|
60
|
-
|
|
61
|
-
(attribute_selector
|
|
62
|
-
(plain_value) @string)
|
|
63
|
-
|
|
64
|
-
(pseudo_element_selector
|
|
65
|
-
"::"
|
|
66
|
-
(tag_name) @attribute)
|
|
67
|
-
|
|
68
|
-
(pseudo_class_selector
|
|
69
|
-
(class_name) @attribute)
|
|
70
|
-
|
|
71
|
-
(attribute_name) @tag.attribute
|
|
72
|
-
|
|
73
|
-
(namespace_name) @module
|
|
74
|
-
|
|
75
|
-
(keyframes_name) @variable
|
|
76
|
-
|
|
77
|
-
((property_name) @variable
|
|
78
|
-
(#lua-match? @variable "^[-][-]"))
|
|
79
|
-
|
|
80
|
-
((plain_value) @variable
|
|
81
|
-
(#lua-match? @variable "^[-][-]"))
|
|
82
|
-
|
|
83
|
-
[
|
|
84
|
-
(string_value)
|
|
85
|
-
(color_value)
|
|
86
|
-
(unit)
|
|
87
|
-
] @string
|
|
88
|
-
|
|
89
|
-
(integer_value) @number
|
|
90
|
-
|
|
91
|
-
(float_value) @number.float
|
|
92
|
-
|
|
93
|
-
[
|
|
94
|
-
"#"
|
|
95
|
-
","
|
|
96
|
-
"."
|
|
97
|
-
":"
|
|
98
|
-
"::"
|
|
99
|
-
";"
|
|
100
|
-
] @punctuation.delimiter
|
|
101
|
-
|
|
102
|
-
[
|
|
103
|
-
"{"
|
|
104
|
-
")"
|
|
105
|
-
"("
|
|
106
|
-
"}"
|
|
107
|
-
"["
|
|
108
|
-
"]"
|
|
109
|
-
] @punctuation.bracket
|
|
Binary file
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
; Function calls
|
|
2
|
-
|
|
3
|
-
(call_expression
|
|
4
|
-
function: (identifier) @function.builtin
|
|
5
|
-
(.match? @function.builtin "^(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)$"))
|
|
6
|
-
|
|
7
|
-
(call_expression
|
|
8
|
-
function: (identifier) @function)
|
|
9
|
-
|
|
10
|
-
(call_expression
|
|
11
|
-
function: (selector_expression
|
|
12
|
-
field: (field_identifier) @function.method))
|
|
13
|
-
|
|
14
|
-
; Function definitions
|
|
15
|
-
|
|
16
|
-
(function_declaration
|
|
17
|
-
name: (identifier) @function)
|
|
18
|
-
|
|
19
|
-
(method_declaration
|
|
20
|
-
name: (field_identifier) @function.method)
|
|
21
|
-
|
|
22
|
-
; Identifiers
|
|
23
|
-
|
|
24
|
-
(type_identifier) @type
|
|
25
|
-
(field_identifier) @property
|
|
26
|
-
(identifier) @variable
|
|
27
|
-
|
|
28
|
-
; Operators
|
|
29
|
-
|
|
30
|
-
[
|
|
31
|
-
"--"
|
|
32
|
-
"-"
|
|
33
|
-
"-="
|
|
34
|
-
":="
|
|
35
|
-
"!"
|
|
36
|
-
"!="
|
|
37
|
-
"..."
|
|
38
|
-
"*"
|
|
39
|
-
"*"
|
|
40
|
-
"*="
|
|
41
|
-
"/"
|
|
42
|
-
"/="
|
|
43
|
-
"&"
|
|
44
|
-
"&&"
|
|
45
|
-
"&="
|
|
46
|
-
"%"
|
|
47
|
-
"%="
|
|
48
|
-
"^"
|
|
49
|
-
"^="
|
|
50
|
-
"+"
|
|
51
|
-
"++"
|
|
52
|
-
"+="
|
|
53
|
-
"<-"
|
|
54
|
-
"<"
|
|
55
|
-
"<<"
|
|
56
|
-
"<<="
|
|
57
|
-
"<="
|
|
58
|
-
"="
|
|
59
|
-
"=="
|
|
60
|
-
">"
|
|
61
|
-
">="
|
|
62
|
-
">>"
|
|
63
|
-
">>="
|
|
64
|
-
"|"
|
|
65
|
-
"|="
|
|
66
|
-
"||"
|
|
67
|
-
"~"
|
|
68
|
-
] @operator
|
|
69
|
-
|
|
70
|
-
; Keywords
|
|
71
|
-
|
|
72
|
-
[
|
|
73
|
-
"break"
|
|
74
|
-
"case"
|
|
75
|
-
"chan"
|
|
76
|
-
"const"
|
|
77
|
-
"continue"
|
|
78
|
-
"default"
|
|
79
|
-
"defer"
|
|
80
|
-
"else"
|
|
81
|
-
"fallthrough"
|
|
82
|
-
"for"
|
|
83
|
-
"func"
|
|
84
|
-
"go"
|
|
85
|
-
"goto"
|
|
86
|
-
"if"
|
|
87
|
-
"import"
|
|
88
|
-
"interface"
|
|
89
|
-
"map"
|
|
90
|
-
"package"
|
|
91
|
-
"range"
|
|
92
|
-
"return"
|
|
93
|
-
"select"
|
|
94
|
-
"struct"
|
|
95
|
-
"switch"
|
|
96
|
-
"type"
|
|
97
|
-
"var"
|
|
98
|
-
] @keyword
|
|
99
|
-
|
|
100
|
-
; Literals
|
|
101
|
-
|
|
102
|
-
[
|
|
103
|
-
(interpreted_string_literal)
|
|
104
|
-
(raw_string_literal)
|
|
105
|
-
(rune_literal)
|
|
106
|
-
] @string
|
|
107
|
-
|
|
108
|
-
(escape_sequence) @escape
|
|
109
|
-
|
|
110
|
-
[
|
|
111
|
-
(int_literal)
|
|
112
|
-
(float_literal)
|
|
113
|
-
(imaginary_literal)
|
|
114
|
-
] @number
|
|
115
|
-
|
|
116
|
-
[
|
|
117
|
-
(true)
|
|
118
|
-
(false)
|
|
119
|
-
(nil)
|
|
120
|
-
(iota)
|
|
121
|
-
] @constant.builtin
|
|
122
|
-
|
|
123
|
-
(comment) @comment
|
|
Binary file
|
|
Binary file
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
(true)
|
|
3
|
-
(false)
|
|
4
|
-
] @boolean
|
|
5
|
-
|
|
6
|
-
(null) @constant.builtin
|
|
7
|
-
|
|
8
|
-
(number) @number
|
|
9
|
-
|
|
10
|
-
(pair
|
|
11
|
-
key: (string) @property)
|
|
12
|
-
|
|
13
|
-
(pair
|
|
14
|
-
value: (string) @string)
|
|
15
|
-
|
|
16
|
-
(array
|
|
17
|
-
(string) @string)
|
|
18
|
-
|
|
19
|
-
[
|
|
20
|
-
","
|
|
21
|
-
":"
|
|
22
|
-
] @punctuation.delimiter
|
|
23
|
-
|
|
24
|
-
[
|
|
25
|
-
"["
|
|
26
|
-
"]"
|
|
27
|
-
"{"
|
|
28
|
-
"}"
|
|
29
|
-
] @punctuation.bracket
|
|
30
|
-
|
|
31
|
-
("\"" @conceal
|
|
32
|
-
(#set! conceal ""))
|
|
33
|
-
|
|
34
|
-
(escape_sequence) @string.escape
|
|
35
|
-
|
|
36
|
-
((escape_sequence) @conceal
|
|
37
|
-
(#eq? @conceal "\\\"")
|
|
38
|
-
(#set! conceal "\""))
|
|
Binary file
|