ts-wasms 2.0.0 → 3.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/README.md +7 -0
- package/index.d.ts +108 -94
- package/index.js +21 -0
- package/manifest.json +622 -0
- package/out/ada/folds.scm +15 -0
- package/out/ada/highlights.scm +196 -0
- package/out/ada/injections.scm +2 -0
- package/out/ada/locals.scm +33 -0
- package/out/ada/textobjects.scm +23 -0
- package/out/ada/tree-sitter-ada.wasm +0 -0
- package/out/arduino/folds.scm +1 -0
- package/out/arduino/highlights.scm +48 -0
- package/out/arduino/indents.scm +1 -0
- package/out/arduino/injections.scm +1 -0
- package/out/arduino/locals.scm +1 -0
- package/out/arduino/tags.scm +5 -0
- package/out/arduino/tree-sitter-arduino.wasm +0 -0
- package/out/awk/highlights.scm +122 -0
- package/out/awk/injections.scm +17 -0
- package/out/awk/tree-sitter-awk.wasm +0 -0
- package/out/bibtex/folds.scm +1 -0
- package/out/bibtex/highlights.scm +47 -0
- package/out/bibtex/indents.scm +8 -0
- package/out/bibtex/injections.scm +2 -0
- package/out/bibtex/locals.scm +0 -0
- package/out/bibtex/tags.scm +0 -0
- package/out/bibtex/tree-sitter-bibtex.wasm +0 -0
- package/out/cairo/folds.scm +26 -0
- package/out/cairo/highlights.scm +372 -0
- package/out/cairo/indents.scm +134 -0
- package/out/cairo/injections.scm +3 -0
- package/out/cairo/locals.scm +28 -0
- package/out/cairo/textobjects.scm +79 -0
- package/out/cairo/tree-sitter-cairo.wasm +0 -0
- package/out/cuda/folds.scm +1 -0
- package/out/cuda/highlights.scm +17 -0
- package/out/cuda/indents.scm +1 -0
- package/out/cuda/injections.scm +1 -0
- package/out/cuda/locals.scm +1 -0
- package/out/cuda/tree-sitter-cuda.wasm +0 -0
- package/out/d/folds.scm +4 -0
- package/out/d/helix-highlights.scm +241 -0
- package/out/d/helix-indents.scm +17 -0
- package/out/d/helix-injections.scm +2 -0
- package/out/d/helix-textobjects.scm +9 -0
- package/out/d/highlights.scm +259 -0
- package/out/d/indents.scm +17 -0
- package/out/d/injections.scm +2 -0
- package/out/d/locals.scm +79 -0
- package/out/d/nova-folds.scm +6 -0
- package/out/d/nova-highlights.scm +283 -0
- package/out/d/nova-symbols.scm +23 -0
- package/out/d/tags.scm +28 -0
- package/out/d/textobjects.scm +9 -0
- package/out/d/tree-sitter-d.wasm +0 -0
- package/out/desktop/folds.scm +1 -0
- package/out/desktop/highlights.scm +91 -0
- package/out/desktop/injections.scm +8 -0
- package/out/desktop/tree-sitter-desktop.wasm +0 -0
- package/out/devicetree/folds.scm +1 -0
- package/out/devicetree/highlights.scm +78 -0
- package/out/devicetree/indents.scm +12 -0
- package/out/devicetree/injections.scm +2 -0
- package/out/devicetree/locals.scm +4 -0
- package/out/devicetree/tree-sitter-devicetree.wasm +0 -0
- package/out/git_config/folds.scm +2 -0
- package/out/git_config/injections.scm +69 -0
- package/out/git_rebase/injections.scm +8 -0
- package/out/gleam/folds.scm +7 -0
- package/out/gleam/highlights.scm +137 -0
- package/out/gleam/indents.scm +28 -0
- package/out/gleam/injections.scm +3 -0
- package/out/gleam/locals.scm +17 -0
- package/out/gleam/tags.scm +41 -0
- package/out/gleam/tree-sitter-gleam.wasm +0 -0
- package/out/glsl/folds.scm +1 -0
- package/out/glsl/highlights.scm +115 -0
- package/out/glsl/indents.scm +1 -0
- package/out/glsl/injections.scm +1 -0
- package/out/glsl/locals.scm +1 -0
- package/out/glsl/tree-sitter-glsl.wasm +0 -0
- package/out/godot_resource/folds.scm +1 -0
- package/out/godot_resource/highlights.scm +49 -0
- package/out/godot_resource/injections.scm +2 -0
- package/out/godot_resource/locals.scm +1 -0
- package/out/kdl/folds.scm +8 -0
- package/out/kdl/highlights.scm +58 -0
- package/out/kdl/indents.scm +7 -0
- package/out/kdl/injections.scm +4 -0
- package/out/kdl/locals.scm +10 -0
- package/out/kdl/tree-sitter-kdl.wasm +0 -0
- package/out/liquid/highlights.scm +119 -0
- package/out/liquid/injections.scm +22 -0
- package/out/liquid/tree-sitter-liquid.wasm +0 -0
- package/out/ocaml_interface/folds.scm +1 -0
- package/out/ocaml_interface/indents.scm +1 -0
- package/out/ocaml_interface/injections.scm +1 -0
- package/out/php_only/folds.scm +19 -0
- package/out/php_only/indents.scm +68 -0
- package/out/php_only/locals.scm +84 -0
- package/out/solidity/folds.scm +20 -0
- package/out/solidity/highlights-nvim.scm +309 -0
- package/out/solidity/highlights.scm +217 -0
- package/out/solidity/injections.scm +14 -0
- package/out/solidity/locals.scm +9 -0
- package/out/solidity/tags.scm +43 -0
- package/out/solidity/tree-sitter-solidity.wasm +0 -0
- package/package.json +18 -2
- /package/out/{c-sharp → c_sharp_c_sharp}/highlights.scm +0 -0
- /package/out/{c-sharp → c_sharp_c_sharp}/tags.scm +0 -0
- /package/out/{c-sharp/tree-sitter-c-sharp.wasm → c_sharp_c_sharp/tree-sitter-c_sharp_c_sharp.wasm} +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/highlights.scm +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/injections-ejs.scm +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/injections-erb.scm +0 -0
- /package/out/{embedded-template → embedded_template_embedded_template}/injections-etlua.scm +0 -0
- /package/out/{embedded-template/tree-sitter-embedded-template.wasm → embedded_template_embedded_template/tree-sitter-embedded_template_embedded_template.wasm} +0 -0
- /package/out/{git-config → git_config}/highlights.scm +0 -0
- /package/out/{git-config/tree-sitter-git-config.wasm → git_config/tree-sitter-git_config.wasm} +0 -0
- /package/out/{git-rebase → git_rebase}/highlights.scm +0 -0
- /package/out/{git-rebase/tree-sitter-git-rebase.wasm → git_rebase/tree-sitter-git_rebase.wasm} +0 -0
- /package/out/{godot-resource/tree-sitter-godot-resource.wasm → godot_resource/tree-sitter-godot_resource.wasm} +0 -0
- /package/out/{markdown-inline → markdown_inline}/highlights.scm +0 -0
- /package/out/{markdown-inline → markdown_inline}/injections.scm +0 -0
- /package/out/{markdown-inline/tree-sitter-markdown-inline.wasm → markdown_inline/tree-sitter-markdown_inline.wasm} +0 -0
- /package/out/{ocaml-interface → ocaml_interface}/highlights.scm +0 -0
- /package/out/{ocaml-interface → ocaml_interface}/locals.scm +0 -0
- /package/out/{ocaml-interface → ocaml_interface}/tags.scm +0 -0
- /package/out/{ocaml-interface/tree-sitter-ocaml-interface.wasm → ocaml_interface/tree-sitter-ocaml_interface.wasm} +0 -0
- /package/out/{ocaml-type → ocaml_type}/highlights.scm +0 -0
- /package/out/{ocaml-type → ocaml_type}/locals.scm +0 -0
- /package/out/{ocaml-type → ocaml_type}/tags.scm +0 -0
- /package/out/{ocaml-type/tree-sitter-ocaml-type.wasm → ocaml_type/tree-sitter-ocaml_type.wasm} +0 -0
- /package/out/{php-only → php_only}/highlights.scm +0 -0
- /package/out/{php-only → php_only}/injections-text.scm +0 -0
- /package/out/{php-only → php_only}/injections.scm +0 -0
- /package/out/{php-only → php_only}/tags.scm +0 -0
- /package/out/{php-only/tree-sitter-php-only.wasm → php_only/tree-sitter-php_only.wasm} +0 -0
- /package/out/{csv-psv → psv}/highlights.scm +0 -0
- /package/out/{csv-psv/tree-sitter-csv-psv.wasm → psv/tree-sitter-psv.wasm} +0 -0
- /package/out/{csv-tsv → tsv}/highlights.scm +0 -0
- /package/out/{csv-tsv/tree-sitter-csv-tsv.wasm → tsv/tree-sitter-tsv.wasm} +0 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
;
|
|
2
|
+
; These are the highlight queries used by the
|
|
3
|
+
; Nova editor (as of version 10).
|
|
4
|
+
;
|
|
5
|
+
; all forms of comment
|
|
6
|
+
(comment) @comment
|
|
7
|
+
|
|
8
|
+
; line directive
|
|
9
|
+
(directive) @processing
|
|
10
|
+
(shebang) @processing
|
|
11
|
+
|
|
12
|
+
(null) @value.null
|
|
13
|
+
[
|
|
14
|
+
(true)
|
|
15
|
+
(false)
|
|
16
|
+
] @value.boolean
|
|
17
|
+
|
|
18
|
+
[
|
|
19
|
+
(this)
|
|
20
|
+
(super)
|
|
21
|
+
] @keyword.self
|
|
22
|
+
|
|
23
|
+
(int_literal) @value.number
|
|
24
|
+
(float_literal) @value.number
|
|
25
|
+
(char_literal) @value.number ; not sure what is best for this
|
|
26
|
+
(special_keyword) @value.symbols
|
|
27
|
+
(htmlentity) @value.entity
|
|
28
|
+
(escape_sequence) @value.entity
|
|
29
|
+
|
|
30
|
+
[
|
|
31
|
+
"("
|
|
32
|
+
")"
|
|
33
|
+
"["
|
|
34
|
+
"]"
|
|
35
|
+
"{"
|
|
36
|
+
"}"
|
|
37
|
+
] @bracket
|
|
38
|
+
|
|
39
|
+
[
|
|
40
|
+
(not_in)
|
|
41
|
+
(not_is)
|
|
42
|
+
] @keyword.operator
|
|
43
|
+
|
|
44
|
+
[
|
|
45
|
+
(lazy)
|
|
46
|
+
(align)
|
|
47
|
+
(extern)
|
|
48
|
+
(static)
|
|
49
|
+
(abstract)
|
|
50
|
+
(final)
|
|
51
|
+
(override)
|
|
52
|
+
(synchronized)
|
|
53
|
+
(auto)
|
|
54
|
+
(scope)
|
|
55
|
+
(gshared)
|
|
56
|
+
(ref)
|
|
57
|
+
(deprecated)
|
|
58
|
+
(nothrow)
|
|
59
|
+
(pure)
|
|
60
|
+
(type_ctor)
|
|
61
|
+
] @keyword.modifier
|
|
62
|
+
|
|
63
|
+
; these are special only when it shows up here
|
|
64
|
+
(parameter_attribute (return) @keyword.modifier)
|
|
65
|
+
(parameter_attribute (in) @keyword.modifier)
|
|
66
|
+
(parameter_attribute (out) @keyword.modifier)
|
|
67
|
+
|
|
68
|
+
(function_declaration (identifier) @identifier.function)
|
|
69
|
+
(call_expression (type (identifier) @identifier.function))
|
|
70
|
+
(template_instance (identifier) @identifier.method)
|
|
71
|
+
|
|
72
|
+
[
|
|
73
|
+
"/="
|
|
74
|
+
"/"
|
|
75
|
+
".."
|
|
76
|
+
"..."
|
|
77
|
+
"&"
|
|
78
|
+
"&="
|
|
79
|
+
"&&"
|
|
80
|
+
"|"
|
|
81
|
+
"|="
|
|
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
|
+
] @operator
|
|
118
|
+
|
|
119
|
+
[
|
|
120
|
+
(break)
|
|
121
|
+
(case)
|
|
122
|
+
(catch)
|
|
123
|
+
(continue)
|
|
124
|
+
(do)
|
|
125
|
+
(default)
|
|
126
|
+
(finally)
|
|
127
|
+
(else)
|
|
128
|
+
(goto)
|
|
129
|
+
(if)
|
|
130
|
+
(switch)
|
|
131
|
+
(try)
|
|
132
|
+
] @keyword.control
|
|
133
|
+
|
|
134
|
+
; builtin types. it would be nice to have a different markup for it.
|
|
135
|
+
[
|
|
136
|
+
(void)
|
|
137
|
+
(bool)
|
|
138
|
+
(byte)
|
|
139
|
+
(ubyte)
|
|
140
|
+
(char)
|
|
141
|
+
(short)
|
|
142
|
+
(ushort)
|
|
143
|
+
(wchar)
|
|
144
|
+
(dchar)
|
|
145
|
+
(int)
|
|
146
|
+
(uint)
|
|
147
|
+
(long)
|
|
148
|
+
(ulong)
|
|
149
|
+
(real)
|
|
150
|
+
(double)
|
|
151
|
+
(float)
|
|
152
|
+
(size_t)
|
|
153
|
+
(ptrdiff_t)
|
|
154
|
+
(string)
|
|
155
|
+
(cstring)
|
|
156
|
+
(dstring)
|
|
157
|
+
(wstring)
|
|
158
|
+
(noreturn)
|
|
159
|
+
] @identifier.type.core
|
|
160
|
+
|
|
161
|
+
[
|
|
162
|
+
(class)
|
|
163
|
+
(struct)
|
|
164
|
+
(interface)
|
|
165
|
+
(union)
|
|
166
|
+
(enum)
|
|
167
|
+
(function)
|
|
168
|
+
(delegate)
|
|
169
|
+
] @keyword.construct
|
|
170
|
+
|
|
171
|
+
; some editors (Helix) have a different selector for return statements.
|
|
172
|
+
; TODO: this keyword is sometimes a parameter attribute
|
|
173
|
+
(return) @keyword.control
|
|
174
|
+
|
|
175
|
+
; some editors (Helix) have a selector for imports
|
|
176
|
+
(import) @keyword.control
|
|
177
|
+
|
|
178
|
+
; some editors have a repeat keyword construct
|
|
179
|
+
[
|
|
180
|
+
(for)
|
|
181
|
+
(foreach)
|
|
182
|
+
(foreach_reverse)
|
|
183
|
+
(while)
|
|
184
|
+
] @keyword.control
|
|
185
|
+
|
|
186
|
+
(cast) @keyword.operator
|
|
187
|
+
|
|
188
|
+
[
|
|
189
|
+
(abstract)
|
|
190
|
+
(alias)
|
|
191
|
+
(align)
|
|
192
|
+
(asm)
|
|
193
|
+
(assert)
|
|
194
|
+
(auto)
|
|
195
|
+
(cast)
|
|
196
|
+
(debug)
|
|
197
|
+
(delete)
|
|
198
|
+
(deprecated)
|
|
199
|
+
(export)
|
|
200
|
+
(extern)
|
|
201
|
+
(final)
|
|
202
|
+
(invariant)
|
|
203
|
+
(is)
|
|
204
|
+
; "macro" - obsolete
|
|
205
|
+
(mixin)
|
|
206
|
+
(module)
|
|
207
|
+
(new)
|
|
208
|
+
(override)
|
|
209
|
+
(pragma)
|
|
210
|
+
(scope)
|
|
211
|
+
(synchronized)
|
|
212
|
+
(template)
|
|
213
|
+
(throw)
|
|
214
|
+
(typeid)
|
|
215
|
+
(typeof)
|
|
216
|
+
(unittest)
|
|
217
|
+
(version)
|
|
218
|
+
(with)
|
|
219
|
+
(traits)
|
|
220
|
+
(vector)
|
|
221
|
+
(parameters_)
|
|
222
|
+
] @keyword
|
|
223
|
+
|
|
224
|
+
[
|
|
225
|
+
(this)
|
|
226
|
+
(super)
|
|
227
|
+
] @keyword.self
|
|
228
|
+
|
|
229
|
+
[
|
|
230
|
+
(const)
|
|
231
|
+
(immutable)
|
|
232
|
+
(in)
|
|
233
|
+
(inout)
|
|
234
|
+
(lazy)
|
|
235
|
+
(ref)
|
|
236
|
+
(protected)
|
|
237
|
+
(private)
|
|
238
|
+
(package)
|
|
239
|
+
(public)
|
|
240
|
+
(pure)
|
|
241
|
+
(gshared)
|
|
242
|
+
(shared)
|
|
243
|
+
(static)
|
|
244
|
+
] @keyword.modifier
|
|
245
|
+
|
|
246
|
+
[
|
|
247
|
+
(cent)
|
|
248
|
+
(ucent)
|
|
249
|
+
(ireal)
|
|
250
|
+
(idouble)
|
|
251
|
+
(ifloat)
|
|
252
|
+
(creal)
|
|
253
|
+
(cdouble)
|
|
254
|
+
(cfloat)
|
|
255
|
+
] @invalid ; these types are deprecated
|
|
256
|
+
|
|
257
|
+
(debug_condition (debug) (int_literal) @invalid) ; deprecated in 2.101
|
|
258
|
+
(debug_specification (debug) (int_literal) @invalid) ; deprecated in 2.101
|
|
259
|
+
(version_condition (version) (int_literal) @invalid) ; deprecated in 2.101
|
|
260
|
+
(version_specification (version) (int_literal) @invalid) ; deprecated in 2.101
|
|
261
|
+
(version_condition (identifier) @value.symbol)
|
|
262
|
+
|
|
263
|
+
(module_fqn) @processing ; this is a crummy workaround since we don't have anything for imports
|
|
264
|
+
(module_declaration (module_fqn)) @definition.package
|
|
265
|
+
(class_declaration (identifier) @identifier.type.class)
|
|
266
|
+
(struct_declaration (identifier) @identifier.type.struct)
|
|
267
|
+
(interface_declaration (identifier) @identifier.type.protocol)
|
|
268
|
+
(at_attribute) @identifier.property
|
|
269
|
+
; conventional naming
|
|
270
|
+
(type (identifier) @_type (#match? @_type "^[A-Z]")) @identifier.type.class
|
|
271
|
+
(type (identifier) @_type (#not-match? @_type "^[A-Z]")) @identifier.type
|
|
272
|
+
(enum_declaration (enum) . (identifier) @identifier.type.enum)
|
|
273
|
+
(auto_declaration (storage_class (auto)) . (identifier) @identifier.variable)
|
|
274
|
+
(manifest_declarator . (identifier) @identifier.constant)
|
|
275
|
+
(identifier) @identifier ; catch all
|
|
276
|
+
(declarator . (identifier) @identifier.variable)
|
|
277
|
+
(declarator "=" (void) @value.null)
|
|
278
|
+
|
|
279
|
+
((enum_member . (identifier) @identifier.property) (#set! role enum-member))
|
|
280
|
+
|
|
281
|
+
(interpolation_expression "$(" @bracket)
|
|
282
|
+
(interpolation_expression) @string-template.value
|
|
283
|
+
(string_literal) @string
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
((module_def (module_declaration (module_fqn) @name)) @subtree (#set! role package))
|
|
2
|
+
|
|
3
|
+
((struct_declaration (struct) . (identifier) @name) @subtree (#set! role struct))
|
|
4
|
+
((enum_declaration (enum) . (identifier) @name) @subtree (#set! role enum))
|
|
5
|
+
|
|
6
|
+
((class_declaration (class) . (identifier) @name) @subtree (#set! role class))
|
|
7
|
+
((constructor (this) @name) @subtree (#set! role constructor))
|
|
8
|
+
((destructor (this) @name) @subtree (#set! role destructor))
|
|
9
|
+
((postblit (this) @name) @subtree (#set! role constructor))
|
|
10
|
+
|
|
11
|
+
((manifest_declarator . (identifier) @name) @subtree (#set! role constant))
|
|
12
|
+
|
|
13
|
+
((function_declaration (identifier) @name) @subtree (#set! role function-or-method))
|
|
14
|
+
|
|
15
|
+
((aggregate_body (variable_declaration (declarator (identifier) @name) @subtree (#set! role property))))
|
|
16
|
+
|
|
17
|
+
((union_declaration (union) . (identifier) @name) @subtree (#set! role union))
|
|
18
|
+
|
|
19
|
+
((alias_declaration (alias_initializer . (identifier) @name) @subtree (#set! role type)))
|
|
20
|
+
|
|
21
|
+
((anonymous_enum_declaration ((enum_member . (identifier) @name) @subtree (#set! role constant))))
|
|
22
|
+
|
|
23
|
+
((enum_declaration ((enum_member . (identifier) @name) @subtree (#set! role enum-member))))
|
package/out/d/tags.scm
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(module_def (module_declaration (module_fqn) @name)) @definition.module
|
|
2
|
+
|
|
3
|
+
(struct_declaration (struct) . (identifier) @name) @definition.class
|
|
4
|
+
(interface_declaration (interface) . (identifier) @name) @definition.interface
|
|
5
|
+
(enum_declaration (enum) . (identifier) @name) @definition.type
|
|
6
|
+
|
|
7
|
+
(class_declaration (class) . (identifier) @name) @definition.class
|
|
8
|
+
(constructor (this) @name) @definition.method
|
|
9
|
+
(destructor (this) @name) @definition.method
|
|
10
|
+
(postblit (this) @name) @definition.method
|
|
11
|
+
|
|
12
|
+
(manifest_declarator . (identifier) @name) @definition.type
|
|
13
|
+
|
|
14
|
+
(function_declaration (identifier) @name) @definition.function
|
|
15
|
+
|
|
16
|
+
(union_declaration (union) . (identifier) @name) @definition.type
|
|
17
|
+
|
|
18
|
+
(anonymous_enum_declaration (enum_member . (identifier) @name)) @definition.constant
|
|
19
|
+
|
|
20
|
+
(enum_declaration (enum_member . (identifier) @name)) @definition.constant
|
|
21
|
+
|
|
22
|
+
(call_expression (identifier) @name) @reference.call
|
|
23
|
+
(call_expression (type (template_instance (identifier) @name))) @reference.call
|
|
24
|
+
(parameter (type (identifier) @name) @reference.class (identifier))
|
|
25
|
+
|
|
26
|
+
(variable_declaration (type (identifier) @name) @reference.class (declarator))
|
|
27
|
+
|
|
28
|
+
((alias_declaration (alias_initializer . (identifier) @name))) @definition.class
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
(function_declaration (function_body) @function.inside) @function.around
|
|
2
|
+
(comment) @comment.inside
|
|
3
|
+
(comment)+ @comment.around
|
|
4
|
+
(class_declaration (aggregate_body) @class.inside) @class.around
|
|
5
|
+
(interface_declaration (aggregate_body) @class.inside) @class.around
|
|
6
|
+
(struct_declaration (aggregate_body) @class.inside) @class.around
|
|
7
|
+
(unittest_declaration (block_statement) @test.inside) @test.around
|
|
8
|
+
(parameter) @parameter.inside
|
|
9
|
+
(template_parameter) @parameter.inside
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(group) @fold
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
(comment) @comment @spell
|
|
2
|
+
|
|
3
|
+
(group_name) @markup.heading
|
|
4
|
+
|
|
5
|
+
(entry
|
|
6
|
+
key: (identifier) @property)
|
|
7
|
+
|
|
8
|
+
[
|
|
9
|
+
(language)
|
|
10
|
+
(country)
|
|
11
|
+
(encoding)
|
|
12
|
+
(modifier)
|
|
13
|
+
] @string.special
|
|
14
|
+
|
|
15
|
+
(string) @string
|
|
16
|
+
|
|
17
|
+
(escape_sequence) @string.escape
|
|
18
|
+
|
|
19
|
+
(field_code) @character.special
|
|
20
|
+
|
|
21
|
+
[
|
|
22
|
+
(true)
|
|
23
|
+
(false)
|
|
24
|
+
] @boolean
|
|
25
|
+
|
|
26
|
+
"=" @operator
|
|
27
|
+
|
|
28
|
+
[
|
|
29
|
+
";"
|
|
30
|
+
"_"
|
|
31
|
+
"."
|
|
32
|
+
"@"
|
|
33
|
+
] @punctuation.delimiter
|
|
34
|
+
|
|
35
|
+
[
|
|
36
|
+
"["
|
|
37
|
+
"]"
|
|
38
|
+
] @punctuation.bracket
|
|
39
|
+
|
|
40
|
+
; Especial entries
|
|
41
|
+
((entry
|
|
42
|
+
key: (identifier) @_key
|
|
43
|
+
value: (string) @type)
|
|
44
|
+
(#eq? @_key "Type")
|
|
45
|
+
(#any-of? @type "Application" "Link" "Directory"))
|
|
46
|
+
|
|
47
|
+
((entry
|
|
48
|
+
key: (identifier) @_key
|
|
49
|
+
value: (string) @number)
|
|
50
|
+
(#eq? @_key "Version"))
|
|
51
|
+
|
|
52
|
+
((entry
|
|
53
|
+
key: (identifier) @_key
|
|
54
|
+
value: (string) @string.special.path)
|
|
55
|
+
(#any-of? @_key "TryExec" "Path"))
|
|
56
|
+
|
|
57
|
+
((entry
|
|
58
|
+
key: (identifier) @_key
|
|
59
|
+
value: (string) @string.special.url)
|
|
60
|
+
(#eq? @_key "URL"))
|
|
61
|
+
|
|
62
|
+
; https://specifications.freedesktop.org/menu-spec/latest/category-registry.html
|
|
63
|
+
((entry
|
|
64
|
+
key: (identifier) @_key
|
|
65
|
+
value: (list
|
|
66
|
+
(string) @constant.builtin))
|
|
67
|
+
(#eq? @_key "Categories")
|
|
68
|
+
(#any-of? @constant.builtin
|
|
69
|
+
; Main categories
|
|
70
|
+
"AudioVideo" "Audio" "Video" "Development" "Education" "Game" "Graphics" "Network" "Office"
|
|
71
|
+
"Science" "Settings" "System" "Utility"
|
|
72
|
+
; Additional Categories
|
|
73
|
+
"Building" "Debugger" "IDE" "GUIDesigner" "Profiling" "RevisionControl" "Translation" "Calendar"
|
|
74
|
+
"ContactManagement" "Database" "Dictionary" "Chart" "Email" "Finance" "FlowChart" "PDA"
|
|
75
|
+
"ProjectManagement" "Presentation" "Spreadsheet" "WordProcessor" "2DGraphics" "VectorGraphics"
|
|
76
|
+
"RasterGraphics" "3DGraphics" "Scanning" "OCR" "Photography" "Publishing" "Viewer" "TextTools"
|
|
77
|
+
"DesktopSettings" "HardwareSettings" "Printing" "PackageManager" "Dialup" "InstantMessaging"
|
|
78
|
+
"Chat" "IRCClient" "Feed" "FileTransfer" "HamRadio" "News" "P2P" "RemoteAccess" "Telephony"
|
|
79
|
+
"TelephonyTools" "VideoConference" "WebBrowser" "WebDevelopment" "Midi" "Mixer" "Sequencer"
|
|
80
|
+
"Tuner" "TV" "AudioVideoEditing" "Player" "Recorder" "DiscBurning" "ActionGame" "AdventureGame"
|
|
81
|
+
"ArcadeGame" "BoardGame" "BlocksGame" "CardGame" "KidsGame" "LogicGame" "RolePlaying" "Shooter"
|
|
82
|
+
"Simulation" "SportsGame" "StrategyGame" "Art" "Construction" "Music" "Languages"
|
|
83
|
+
"ArtificialIntelligence" "Astronomy" "Biology" "Chemistry" "ComputerScience" "DataVisualization"
|
|
84
|
+
"Economy" "Electricity" "Geography" "Geology" "Geoscience" "History" "Humanities"
|
|
85
|
+
"ImageProcessing" "Literature" "Maps" "Math" "NumericalAnalysis" "MedicalSoftware" "Physics"
|
|
86
|
+
"Robotics" "Spirituality" "Sports" "ParallelComputing" "Amusement" "Archiving" "Compression"
|
|
87
|
+
"Electronics" "Emulator" "Engineering" "FileTools" "FileManager" "TerminalEmulator" "Filesystem"
|
|
88
|
+
"Monitor" "Security" "Accessibility" "Calculator" "Clock" "TextEditor" "Documentation" "Adult"
|
|
89
|
+
"Core" "KDE" "COSMIC" "GNOME" "XFCE" "DDE" "GTK" "Qt" "Motif" "Java" "ConsoleOnly"
|
|
90
|
+
; Reserved
|
|
91
|
+
"Screensaver" "TrayIcon" "Applet" "Shell"))
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(node) @fold
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[
|
|
2
|
+
"/delete-node/"
|
|
3
|
+
"/delete-property/"
|
|
4
|
+
"/dts-v1/"
|
|
5
|
+
"/incbin/"
|
|
6
|
+
"/include/"
|
|
7
|
+
"/memreserve/"
|
|
8
|
+
"/omit-if-no-ref/"
|
|
9
|
+
"#define"
|
|
10
|
+
"#undef"
|
|
11
|
+
"#include"
|
|
12
|
+
"#if"
|
|
13
|
+
"#elif"
|
|
14
|
+
"#else"
|
|
15
|
+
"#endif"
|
|
16
|
+
"#ifdef"
|
|
17
|
+
"#ifndef"
|
|
18
|
+
] @keyword
|
|
19
|
+
|
|
20
|
+
[
|
|
21
|
+
"!"
|
|
22
|
+
"~"
|
|
23
|
+
"-"
|
|
24
|
+
"+"
|
|
25
|
+
"*"
|
|
26
|
+
"/"
|
|
27
|
+
"%"
|
|
28
|
+
"||"
|
|
29
|
+
"&&"
|
|
30
|
+
"|"
|
|
31
|
+
"^"
|
|
32
|
+
"&"
|
|
33
|
+
"=="
|
|
34
|
+
"!="
|
|
35
|
+
">"
|
|
36
|
+
">="
|
|
37
|
+
"<="
|
|
38
|
+
">"
|
|
39
|
+
"<<"
|
|
40
|
+
">>"
|
|
41
|
+
] @operator
|
|
42
|
+
|
|
43
|
+
[
|
|
44
|
+
","
|
|
45
|
+
";"
|
|
46
|
+
] @punctuation.delimiter
|
|
47
|
+
|
|
48
|
+
[
|
|
49
|
+
"("
|
|
50
|
+
")"
|
|
51
|
+
"{"
|
|
52
|
+
"}"
|
|
53
|
+
"<"
|
|
54
|
+
">"
|
|
55
|
+
] @punctuation.bracket
|
|
56
|
+
|
|
57
|
+
(call_expression
|
|
58
|
+
function: (identifier) @function)
|
|
59
|
+
|
|
60
|
+
(node
|
|
61
|
+
label: (identifier) @label)
|
|
62
|
+
|
|
63
|
+
(property
|
|
64
|
+
label: (identifier) @label)
|
|
65
|
+
|
|
66
|
+
(memory_reservation
|
|
67
|
+
label: (identifier) @label)
|
|
68
|
+
|
|
69
|
+
(property
|
|
70
|
+
name: (identifier) @property)
|
|
71
|
+
|
|
72
|
+
(identifier) @variable
|
|
73
|
+
|
|
74
|
+
(unit_address) @tag
|
|
75
|
+
|
|
76
|
+
(reference) @constant
|
|
77
|
+
|
|
78
|
+
(comment) @comment
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
((comment) @injection.content
|
|
2
|
+
(#set! injection.language "comment"))
|
|
3
|
+
|
|
4
|
+
((variable
|
|
5
|
+
(name) @_name
|
|
6
|
+
value: (string) @injection.content)
|
|
7
|
+
(#any-of? @_name "cmd" "command" "textconv" "sendmailCmd" "sendmailcmd")
|
|
8
|
+
(#set! injection.language "bash"))
|
|
9
|
+
|
|
10
|
+
(section
|
|
11
|
+
(variable
|
|
12
|
+
(name) @_name
|
|
13
|
+
value: (string) @injection.content)
|
|
14
|
+
(#eq? @_name "tool")
|
|
15
|
+
(#set! injection.language "bash"))
|
|
16
|
+
|
|
17
|
+
(section
|
|
18
|
+
(section_header
|
|
19
|
+
(section_name) @_pager)
|
|
20
|
+
(variable
|
|
21
|
+
value: (string) @injection.content)
|
|
22
|
+
(#eq? @_pager "pager")
|
|
23
|
+
(#set! injection.language "bash"))
|
|
24
|
+
|
|
25
|
+
(section
|
|
26
|
+
(section_header
|
|
27
|
+
(section_name) @_interactive)
|
|
28
|
+
(variable
|
|
29
|
+
(name) @_name
|
|
30
|
+
value: (string) @injection.content)
|
|
31
|
+
(#eq? @_interactive "interactive")
|
|
32
|
+
(#any-of? @_name "diffFilter" "difffilter")
|
|
33
|
+
(#set! injection.language "bash"))
|
|
34
|
+
|
|
35
|
+
; https://github.com/git-lfs/git-lfs
|
|
36
|
+
; git lfs install
|
|
37
|
+
(section
|
|
38
|
+
(section_header
|
|
39
|
+
(section_name) @_filter
|
|
40
|
+
(subsection_name) @_lfs)
|
|
41
|
+
(variable
|
|
42
|
+
(name) @_name
|
|
43
|
+
value: (string) @injection.content)
|
|
44
|
+
(#eq? @_filter "filter")
|
|
45
|
+
(#eq? @_lfs "lfs")
|
|
46
|
+
(#any-of? @_name "smudge" "process" "clean")
|
|
47
|
+
(#set! injection.language "bash"))
|
|
48
|
+
|
|
49
|
+
(section
|
|
50
|
+
(section_header
|
|
51
|
+
(section_name) @_alias)
|
|
52
|
+
(variable
|
|
53
|
+
value: (string) @injection.content)
|
|
54
|
+
(#eq? @_alias "alias")
|
|
55
|
+
(#lua-match? @injection.content "^!")
|
|
56
|
+
(#offset! @injection.content 0 1 0 0)
|
|
57
|
+
(#set! injection.language "bash"))
|
|
58
|
+
|
|
59
|
+
(section
|
|
60
|
+
(section_header
|
|
61
|
+
(section_name) @_alias)
|
|
62
|
+
(variable
|
|
63
|
+
value: (string
|
|
64
|
+
"\""
|
|
65
|
+
"\"") @injection.content)
|
|
66
|
+
(#eq? @_alias "alias")
|
|
67
|
+
(#lua-match? @injection.content "^\"!")
|
|
68
|
+
(#offset! @injection.content 0 2 0 -1)
|
|
69
|
+
(#set! injection.language "bash"))
|