ts-wasms 3.0.0 → 3.0.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/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export type QueryMap = {
9
9
  "bash": "folds" | "highlights" | "indents" | "injections" | "locals";
10
10
  "bibtex": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
11
11
  "c": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
12
- "c_sharp_c_sharp": "highlights" | "tags";
12
+ "c_sharp": "folds" | "highlights" | "injections" | "locals" | "tags";
13
13
  "cairo": "folds" | "highlights" | "indents" | "injections" | "locals" | "textobjects";
14
14
  "clojure": "folds" | "highlights" | "injections" | "locals";
15
15
  "cmake": "folds" | "highlights" | "indents" | "injections";
@@ -30,7 +30,7 @@ export type QueryMap = {
30
30
  "elisp": "highlights" | "tags";
31
31
  "elixir": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
32
32
  "elm": "folds" | "highlights" | "injections" | "locals" | "tags";
33
- "embedded_template_embedded_template": "highlights" | "injections-ejs" | "injections-erb" | "injections-etlua";
33
+ "embedded_template": "highlights" | "injections" | "injections-ejs" | "injections-erb" | "injections-etlua";
34
34
  "erlang": "folds" | "highlights" | "injections";
35
35
  "fish": "folds" | "highlights" | "indents" | "injections" | "locals";
36
36
  "gdscript": "folds" | "highlights" | "indents" | "injections" | "locals";
@@ -90,7 +90,6 @@ export type QueryMap = {
90
90
  "tsv": "highlights";
91
91
  "tsx": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
92
92
  "typescript": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
93
- "vim": "folds" | "highlights" | "injections" | "locals";
94
93
  "vimdoc": "highlights" | "injections";
95
94
  "vue": "folds" | "highlights" | "indents" | "injections";
96
95
  "xml": "folds" | "highlights" | "indents" | "injections" | "locals";
package/manifest.json CHANGED
@@ -59,8 +59,11 @@
59
59
  "locals",
60
60
  "tags"
61
61
  ],
62
- "c_sharp_c_sharp": [
62
+ "c_sharp": [
63
+ "folds",
63
64
  "highlights",
65
+ "injections",
66
+ "locals",
64
67
  "tags"
65
68
  ],
66
69
  "cairo": [
@@ -191,8 +194,9 @@
191
194
  "locals",
192
195
  "tags"
193
196
  ],
194
- "embedded_template_embedded_template": [
197
+ "embedded_template": [
195
198
  "highlights",
199
+ "injections",
196
200
  "injections-ejs",
197
201
  "injections-erb",
198
202
  "injections-etlua"
@@ -582,12 +586,6 @@
582
586
  "locals",
583
587
  "tags"
584
588
  ],
585
- "vim": [
586
- "folds",
587
- "highlights",
588
- "injections",
589
- "locals"
590
- ],
591
589
  "vimdoc": [
592
590
  "highlights",
593
591
  "injections"
@@ -0,0 +1,17 @@
1
+ body: [
2
+ (declaration_list)
3
+ (switch_body)
4
+ (enum_member_declaration_list)
5
+ ] @fold
6
+
7
+ accessors: (accessor_list) @fold
8
+
9
+ initializer: (initializer_expression) @fold
10
+
11
+ [
12
+ (block)
13
+ (preproc_if)
14
+ (preproc_elif)
15
+ (preproc_else)
16
+ (using_directive)+
17
+ ] @fold
@@ -0,0 +1,2 @@
1
+ ((comment) @injection.content
2
+ (#set! injection.language "comment"))
@@ -0,0 +1,42 @@
1
+ ; Definitions
2
+ (variable_declarator
3
+ .
4
+ (identifier) @local.definition.var)
5
+
6
+ (variable_declarator
7
+ (tuple_pattern
8
+ (identifier) @local.definition.var))
9
+
10
+ (declaration_expression
11
+ name: (identifier) @local.definition.var)
12
+
13
+ (foreach_statement
14
+ left: (identifier) @local.definition.var)
15
+
16
+ (foreach_statement
17
+ left: (tuple_pattern
18
+ (identifier) @local.definition.var))
19
+
20
+ (parameter
21
+ (identifier) @local.definition.parameter)
22
+
23
+ (method_declaration
24
+ name: (identifier) @local.definition.method)
25
+
26
+ (local_function_statement
27
+ name: (identifier) @local.definition.method)
28
+
29
+ (property_declaration
30
+ name: (identifier) @local.definition)
31
+
32
+ (type_parameter
33
+ (identifier) @local.definition.type)
34
+
35
+ (class_declaration
36
+ name: (identifier) @local.definition)
37
+
38
+ ; References
39
+ (identifier) @local.reference
40
+
41
+ ; Scope
42
+ (block) @local.scope
@@ -0,0 +1,7 @@
1
+ ((content) @injection.content
2
+ (#set! injection.language "html")
3
+ (#set! injection.combined))
4
+
5
+ ((code) @injection.content
6
+ (#set! injection.language "ruby")
7
+ (#set! injection.combined))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-wasms",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Pre-built WebAssembly binaries for tree-sitter grammars.",
5
5
  "keywords": [
6
6
  "incremental",
package/out/vim/folds.scm DELETED
@@ -1,4 +0,0 @@
1
- [
2
- (if_statement)
3
- (function_definition)
4
- ] @fold
@@ -1,362 +0,0 @@
1
- (identifier) @variable
2
-
3
- ((identifier) @constant
4
- (#lua-match? @constant "^[A-Z][A-Z_0-9]*$"))
5
-
6
- ; Keywords
7
- [
8
- "if"
9
- "else"
10
- "elseif"
11
- "endif"
12
- ] @keyword.conditional
13
-
14
- [
15
- "try"
16
- "catch"
17
- "finally"
18
- "endtry"
19
- "throw"
20
- ] @keyword.exception
21
-
22
- [
23
- "for"
24
- "endfor"
25
- "in"
26
- "while"
27
- "endwhile"
28
- "break"
29
- "continue"
30
- ] @keyword.repeat
31
-
32
- [
33
- "function"
34
- "endfunction"
35
- ] @keyword.function
36
-
37
- ; Function related
38
- (function_declaration
39
- name: (_) @function)
40
-
41
- (call_expression
42
- function: (identifier) @function.call)
43
-
44
- (call_expression
45
- function: (scoped_identifier
46
- (identifier) @function.call))
47
-
48
- (parameters
49
- (identifier) @variable.parameter)
50
-
51
- (default_parameter
52
- (identifier) @variable.parameter)
53
-
54
- [
55
- (bang)
56
- (spread)
57
- ] @punctuation.special
58
-
59
- [
60
- (no_option)
61
- (inv_option)
62
- (default_option)
63
- (option_name)
64
- ] @variable.builtin
65
-
66
- [
67
- (scope)
68
- "a:"
69
- "$"
70
- ] @module
71
-
72
- ; Commands and user defined commands
73
- [
74
- "let"
75
- "unlet"
76
- "const"
77
- "call"
78
- "execute"
79
- "normal"
80
- "set"
81
- "setfiletype"
82
- "setlocal"
83
- "silent"
84
- "echo"
85
- "echon"
86
- "echohl"
87
- "echomsg"
88
- "echoerr"
89
- "autocmd"
90
- "augroup"
91
- "return"
92
- "syntax"
93
- "filetype"
94
- "source"
95
- "lua"
96
- "ruby"
97
- "perl"
98
- "python"
99
- "highlight"
100
- "command"
101
- "delcommand"
102
- "comclear"
103
- "colorscheme"
104
- "scriptencoding"
105
- "startinsert"
106
- "stopinsert"
107
- "global"
108
- "runtime"
109
- "wincmd"
110
- "cnext"
111
- "cprevious"
112
- "cNext"
113
- "tab"
114
- "vertical"
115
- "leftabove"
116
- "aboveleft"
117
- "rightbelow"
118
- "belowright"
119
- "topleft"
120
- "botright"
121
- (unknown_command_name)
122
- "edit"
123
- "enew"
124
- "find"
125
- "ex"
126
- "visual"
127
- "view"
128
- "eval"
129
- "sign"
130
- "abort"
131
- "substitute"
132
- ] @keyword
133
-
134
- (map_statement
135
- cmd: _ @keyword)
136
-
137
- (keycode) @character.special
138
-
139
- (command_name) @function.macro
140
-
141
- ; Filetype command
142
- (filetype_statement
143
- [
144
- "detect"
145
- "plugin"
146
- "indent"
147
- "on"
148
- "off"
149
- ] @keyword)
150
-
151
- ; Syntax command
152
- (syntax_statement
153
- (keyword) @string)
154
-
155
- (syntax_statement
156
- [
157
- "enable"
158
- "on"
159
- "off"
160
- "reset"
161
- "case"
162
- "spell"
163
- "foldlevel"
164
- "iskeyword"
165
- "keyword"
166
- "match"
167
- "cluster"
168
- "region"
169
- "clear"
170
- "include"
171
- ] @keyword)
172
-
173
- (syntax_argument
174
- name: _ @keyword)
175
-
176
- [
177
- "<buffer>"
178
- "<nowait>"
179
- "<silent>"
180
- "<script>"
181
- "<expr>"
182
- "<unique>"
183
- ] @constant.builtin
184
-
185
- (augroup_name) @module
186
-
187
- (au_event) @constant
188
-
189
- (normal_statement
190
- (commands) @constant)
191
-
192
- ; Highlight command
193
- (hl_attribute
194
- key: _ @property
195
- val: _ @constant)
196
-
197
- (hl_group) @type
198
-
199
- (highlight_statement
200
- [
201
- "default"
202
- "link"
203
- "clear"
204
- ] @keyword)
205
-
206
- ; Command command
207
- (command) @string
208
-
209
- (command_attribute
210
- name: _ @property
211
- val: (behavior
212
- name: _ @constant
213
- val: (identifier)? @function)?)
214
-
215
- ; Edit command
216
- (plus_plus_opt
217
- val: _? @constant) @property
218
-
219
- (plus_cmd
220
- "+" @property) @property
221
-
222
- ; Runtime command
223
- (runtime_statement
224
- (where) @keyword.operator)
225
-
226
- ; Colorscheme command
227
- (colorscheme_statement
228
- (name) @string)
229
-
230
- ; Scriptencoding command
231
- (scriptencoding_statement
232
- (encoding) @string.special)
233
-
234
- ; Literals
235
- (string_literal) @string
236
-
237
- (integer_literal) @number
238
-
239
- (float_literal) @number.float
240
-
241
- (comment) @comment @spell
242
-
243
- (line_continuation_comment) @comment @spell
244
-
245
- (pattern) @string.special
246
-
247
- (pattern_multi) @string.regexp
248
-
249
- (filename) @string.special.path
250
-
251
- (heredoc
252
- (body) @string)
253
-
254
- (heredoc
255
- (parameter) @keyword)
256
-
257
- (script
258
- (parameter) @keyword)
259
-
260
- [
261
- (marker_definition)
262
- (endmarker)
263
- ] @label
264
-
265
- (literal_dictionary
266
- (literal_key) @property)
267
-
268
- ((scoped_identifier
269
- (scope) @_scope
270
- .
271
- (identifier) @boolean)
272
- (#eq? @_scope "v:")
273
- (#any-of? @boolean "true" "false"))
274
-
275
- ; Operators
276
- [
277
- "||"
278
- "&&"
279
- "&"
280
- "+"
281
- "-"
282
- "*"
283
- "/"
284
- "%"
285
- ".."
286
- "=="
287
- "!="
288
- ">"
289
- ">="
290
- "<"
291
- "<="
292
- "=~"
293
- "!~"
294
- "="
295
- "^="
296
- "+="
297
- "-="
298
- "*="
299
- "/="
300
- "%="
301
- ".="
302
- "..="
303
- "<<"
304
- "=<<"
305
- "->"
306
- (match_case)
307
- ] @operator
308
-
309
- [
310
- "is"
311
- "isnot"
312
- ] @keyword.operator
313
-
314
- ; Some characters have different meanings based on the context
315
- (unary_operation
316
- "!" @operator)
317
-
318
- (binary_operation
319
- "." @operator)
320
-
321
- (lua_statement
322
- "=" @keyword)
323
-
324
- ; Punctuation
325
- [
326
- "("
327
- ")"
328
- "{"
329
- "}"
330
- "["
331
- "]"
332
- "#{"
333
- ] @punctuation.bracket
334
-
335
- (field_expression
336
- "." @punctuation.delimiter)
337
-
338
- [
339
- ","
340
- ":"
341
- ] @punctuation.delimiter
342
-
343
- (ternary_expression
344
- [
345
- "?"
346
- ":"
347
- ] @keyword.conditional.ternary)
348
-
349
- ; Options
350
- ((set_value) @number
351
- (#lua-match? @number "^[%d]+(%.[%d]+)?$"))
352
-
353
- (inv_option
354
- "!" @operator)
355
-
356
- (set_item
357
- "?" @operator)
358
-
359
- ((set_item
360
- option: (option_name) @_option
361
- value: (set_value) @function)
362
- (#any-of? @_option "tagfunc" "tfu" "completefunc" "cfu" "omnifunc" "ofu" "operatorfunc" "opfunc"))
@@ -1,44 +0,0 @@
1
- (lua_statement
2
- (script
3
- (body) @injection.content
4
- (#set! injection.language "lua")))
5
-
6
- (lua_statement
7
- (chunk) @injection.content
8
- (#set! injection.language "lua"))
9
-
10
- (ruby_statement
11
- (script
12
- (body) @injection.content
13
- (#set! injection.language "ruby")))
14
-
15
- (ruby_statement
16
- (chunk) @injection.content
17
- (#set! injection.language "ruby"))
18
-
19
- (python_statement
20
- (script
21
- (body) @injection.content
22
- (#set! injection.language "python")))
23
-
24
- (python_statement
25
- (chunk) @injection.content
26
- (#set! injection.language "python"))
27
-
28
- ; If we support perl at some point...
29
- ; (perl_statement (script (body) @perl))
30
- ; (perl_statement (chunk) @perl)
31
- (autocmd_statement
32
- (pattern) @injection.content
33
- (#set! injection.language "regex"))
34
-
35
- ((set_item
36
- option: (option_name) @_option
37
- value: (set_value) @injection.content)
38
- (#any-of? @_option
39
- "includeexpr" "inex" "printexpr" "pexpr" "formatexpr" "fex" "indentexpr" "inde" "foldtext" "fdt"
40
- "foldexpr" "fde" "diffexpr" "dex" "patchexpr" "pex" "charconvert" "ccv")
41
- (#set! injection.language "vim"))
42
-
43
- ((comment) @injection.content
44
- (#set! injection.language "comment"))
@@ -1,19 +0,0 @@
1
- [
2
- (script_file)
3
- (function_definition)
4
- ] @local.scope
5
-
6
- (function_declaration
7
- name: (identifier) @local.definition.function)
8
-
9
- (function_declaration
10
- parameters: (parameters
11
- (identifier) @local.definition.parameter))
12
-
13
- (let_statement
14
- [
15
- (scoped_identifier)
16
- (identifier)
17
- ] @local.definition.var)
18
-
19
- (identifier) @local.reference
Binary file
File without changes
File without changes