ts-wasms 1.0.3 → 1.0.4
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/out/bash/tree-sitter-bash.wasm +0 -0
- package/out/c/tree-sitter-c.wasm +0 -0
- package/out/cpp/tree-sitter-cpp.wasm +0 -0
- package/out/css/tree-sitter-css.wasm +0 -0
- package/out/dart/tree-sitter-dart.wasm +0 -0
- package/out/elixir/tree-sitter-elixir.wasm +0 -0
- package/out/embedded-template/tree-sitter-embedded_template.wasm +0 -0
- package/out/go/tree-sitter-go.wasm +0 -0
- package/out/haskell/tree-sitter-haskell.wasm +0 -0
- package/out/hcl/tree-sitter-hcl.wasm +0 -0
- package/out/hcl-terraform/tree-sitter-terraform.wasm +0 -0
- package/out/html/tree-sitter-html.wasm +0 -0
- package/out/java/tree-sitter-java.wasm +0 -0
- package/out/javascript/tree-sitter-javascript.wasm +0 -0
- package/out/json/tree-sitter-json.wasm +0 -0
- package/out/lua/tree-sitter-lua.wasm +0 -0
- package/out/nix/highlights.scm +99 -0
- package/out/nix/injections.scm +39 -0
- package/out/nix/locals.scm +33 -0
- package/out/nix/tags.scm +16 -0
- package/out/nix/tree-sitter-nix.wasm +0 -0
- package/out/objc/tree-sitter-objc.wasm +0 -0
- package/out/ocaml/highlights.scm +148 -0
- package/out/ocaml/locals.scm +24 -0
- package/out/ocaml/tags.scm +170 -0
- package/out/ocaml/tree-sitter-ocaml.wasm +0 -0
- package/out/ocaml-interface/highlights.scm +148 -0
- package/out/ocaml-interface/locals.scm +24 -0
- package/out/ocaml-interface/tags.scm +170 -0
- package/out/ocaml-interface/tree-sitter-ocaml_interface.wasm +0 -0
- package/out/ocaml-type/highlights.scm +148 -0
- package/out/ocaml-type/locals.scm +24 -0
- package/out/ocaml-type/tags.scm +170 -0
- package/out/ocaml-type/tree-sitter-ocaml_type.wasm +0 -0
- package/out/perl/folds.scm +27 -0
- package/out/perl/highlights.scm +162 -0
- package/out/perl/injections.scm +14 -0
- package/out/perl/matchup.scm +30 -0
- package/out/perl/tree-sitter-perl.wasm +0 -0
- package/out/php/tree-sitter-php.wasm +0 -0
- package/out/{php-php_only → php-only}/tree-sitter-php_only.wasm +0 -0
- package/out/python/tree-sitter-python.wasm +0 -0
- package/out/r/tree-sitter-r.wasm +0 -0
- package/out/regex/tree-sitter-regex.wasm +0 -0
- package/out/ruby/tree-sitter-ruby.wasm +0 -0
- package/out/rust/tree-sitter-rust.wasm +0 -0
- package/out/scala/tree-sitter-scala.wasm +0 -0
- package/out/scss/highlights.scm +69 -0
- package/out/scss/tree-sitter-scss.wasm +0 -0
- package/out/toml/tree-sitter-toml.wasm +0 -0
- package/out/typescript/tree-sitter-typescript.wasm +0 -0
- package/out/typescript-tsx/tree-sitter-tsx.wasm +0 -0
- package/out/zig/tree-sitter-zig.wasm +0 -0
- package/package.json +4 -1
- /package/out/{markdown-tree-sitter-markdown → markdown}/highlights.scm +0 -0
- /package/out/{markdown-tree-sitter-markdown → markdown}/injections.scm +0 -0
- /package/out/{markdown-tree-sitter-markdown → markdown}/tree-sitter-markdown.wasm +0 -0
- /package/out/{markdown-tree-sitter-markdown-inline → markdown-inline}/highlights.scm +0 -0
- /package/out/{markdown-tree-sitter-markdown-inline → markdown-inline}/injections.scm +0 -0
- /package/out/{markdown-tree-sitter-markdown-inline → markdown-inline}/tree-sitter-markdown_inline.wasm +0 -0
- /package/out/{php-php_only → php-only}/highlights.scm +0 -0
- /package/out/{php-php_only → php-only}/injections-text.scm +0 -0
- /package/out/{php-php_only → php-only}/injections.scm +0 -0
- /package/out/{php-php_only → php-only}/tags.scm +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
((source_file . (comment) @preproc)
|
|
2
|
+
(#lua-match? @preproc "^#!/"))
|
|
3
|
+
|
|
4
|
+
[ "use" "no" "require" ] @include
|
|
5
|
+
|
|
6
|
+
[ "if" "elsif" "unless" "else" ] @conditional
|
|
7
|
+
|
|
8
|
+
(conditional_expression [ "?" ":" ] @conditional.ternary)
|
|
9
|
+
|
|
10
|
+
[ "while" "until" "for" "foreach" ] @repeat
|
|
11
|
+
("continue" @repeat (block))
|
|
12
|
+
|
|
13
|
+
[ "try" "catch" "finally" ] @exception
|
|
14
|
+
|
|
15
|
+
"return" @keyword.return
|
|
16
|
+
|
|
17
|
+
[ "sub" "method" "async" "extended" ] @keyword.function
|
|
18
|
+
|
|
19
|
+
[ "map" "grep" "sort" ] @function.builtin
|
|
20
|
+
|
|
21
|
+
[ "package" "class" "role" ] @include
|
|
22
|
+
|
|
23
|
+
[
|
|
24
|
+
"defer"
|
|
25
|
+
"do" "eval"
|
|
26
|
+
"my" "our" "local" "dynamically" "state" "field"
|
|
27
|
+
"last" "next" "redo" "goto"
|
|
28
|
+
"undef" "await"
|
|
29
|
+
] @keyword
|
|
30
|
+
|
|
31
|
+
(yadayada) @exception
|
|
32
|
+
|
|
33
|
+
(phaser_statement phase: _ @keyword.phaser)
|
|
34
|
+
(class_phaser_statement phase: _ @keyword.phaser)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
(_ operator: _ @operator)
|
|
39
|
+
"\\" @operator
|
|
40
|
+
|
|
41
|
+
[
|
|
42
|
+
"or" "xor" "and"
|
|
43
|
+
"eq" "ne" "cmp" "lt" "le" "ge" "gt"
|
|
44
|
+
"isa"
|
|
45
|
+
] @keyword.operator
|
|
46
|
+
|
|
47
|
+
(eof_marker) @preproc
|
|
48
|
+
(data_section) @comment
|
|
49
|
+
|
|
50
|
+
(pod) @text
|
|
51
|
+
|
|
52
|
+
[
|
|
53
|
+
(number)
|
|
54
|
+
(version)
|
|
55
|
+
] @number
|
|
56
|
+
|
|
57
|
+
[
|
|
58
|
+
(string_literal)
|
|
59
|
+
(interpolated_string_literal)
|
|
60
|
+
(quoted_word_list)
|
|
61
|
+
(command_string)
|
|
62
|
+
(heredoc_content)
|
|
63
|
+
(replacement)
|
|
64
|
+
(transliteration_content)
|
|
65
|
+
] @string
|
|
66
|
+
|
|
67
|
+
[
|
|
68
|
+
(heredoc_token)
|
|
69
|
+
(command_heredoc_token)
|
|
70
|
+
(heredoc_end)
|
|
71
|
+
] @label
|
|
72
|
+
|
|
73
|
+
[(escape_sequence) (escaped_delimiter)] @string.escape
|
|
74
|
+
|
|
75
|
+
(_ modifiers: _ @character.special)
|
|
76
|
+
[
|
|
77
|
+
(quoted_regexp)
|
|
78
|
+
(match_regexp)
|
|
79
|
+
(regexp_content)
|
|
80
|
+
] @string.regex
|
|
81
|
+
|
|
82
|
+
(autoquoted_bareword) @string.special
|
|
83
|
+
|
|
84
|
+
(use_statement (package) @type)
|
|
85
|
+
(package_statement (package) @type)
|
|
86
|
+
(class_statement (package) @type)
|
|
87
|
+
(require_expression (bareword) @type)
|
|
88
|
+
|
|
89
|
+
(subroutine_declaration_statement name: (bareword) @function)
|
|
90
|
+
(method_declaration_statement name: (bareword) @method)
|
|
91
|
+
(attribute_name) @attribute
|
|
92
|
+
(attribute_value) @string
|
|
93
|
+
|
|
94
|
+
(label) @label
|
|
95
|
+
|
|
96
|
+
(statement_label label: _ @label)
|
|
97
|
+
|
|
98
|
+
(relational_expression operator: "isa" right: (bareword) @type)
|
|
99
|
+
|
|
100
|
+
(function) @function
|
|
101
|
+
|
|
102
|
+
(function_call_expression (function) @function.call)
|
|
103
|
+
(method_call_expression (method) @method.call)
|
|
104
|
+
(method_call_expression invocant: (bareword) @type)
|
|
105
|
+
|
|
106
|
+
(func0op_call_expression function: _ @function.builtin)
|
|
107
|
+
(func1op_call_expression function: _ @function.builtin)
|
|
108
|
+
|
|
109
|
+
([(function)(expression_statement (bareword))] @function.builtin
|
|
110
|
+
(#match? @function.builtin
|
|
111
|
+
"^(accept|atan2|bind|binmode|bless|crypt|chmod|chown|connect|die|dbmopen|exec|fcntl|flock|getpriority|getprotobynumber|gethostbyaddr|getnetbyaddr|getservbyname|getservbyport|getsockopt|glob|index|ioctl|join|kill|link|listen|mkdir|msgctl|msgget|msgrcv|msgsend|opendir|print|printf|push|pack|pipe|return|rename|rindex|read|recv|reverse|say|select|seek|semctl|semget|semop|send|setpgrp|setpriority|seekdir|setsockopt|shmctl|shmread|shmwrite|shutdown|socket|socketpair|split|sprintf|splice|substr|system|symlink|syscall|sysopen|sysseek|sysread|syswrite|tie|truncate|unlink|unpack|utime|unshift|vec|warn|waitpid|formline|open|sort)$"
|
|
112
|
+
))
|
|
113
|
+
|
|
114
|
+
(ERROR) @error
|
|
115
|
+
|
|
116
|
+
(
|
|
117
|
+
[(varname) (filehandle)] @variable.builtin
|
|
118
|
+
(#match? @variable.builtin "^((ENV|ARGV|INC|ARGVOUT|SIG|STDIN|STDOUT|STDERR)|[_ab]|\\W|\\d+|\\^.*)$")
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
[(array) (arraylen)] @variable.array
|
|
122
|
+
(glob) @variable.builtin
|
|
123
|
+
(scalar) @variable.scalar
|
|
124
|
+
(hash) @variable.hash
|
|
125
|
+
(amper_deref_expression [ "&" "*" ] @function.call)
|
|
126
|
+
|
|
127
|
+
(glob_deref_expression "*" @variable.builtin)
|
|
128
|
+
(glob_slot_expression "*" @variable.builtin)
|
|
129
|
+
(scalar_deref_expression [ "$" "*"] @variable.scalar)
|
|
130
|
+
|
|
131
|
+
; gotta be SUPER GENERIC so we can hit up string interp
|
|
132
|
+
(_
|
|
133
|
+
[
|
|
134
|
+
array: (_) @variable.array
|
|
135
|
+
hash: (_) @variable.hash
|
|
136
|
+
])
|
|
137
|
+
(array_deref_expression [ "@" "*"] @variable.array)
|
|
138
|
+
(arraylen_deref_expression [ "$#" "*"] @variable.array)
|
|
139
|
+
(hash_deref_expression [ "%" "*"] @variable.hash)
|
|
140
|
+
(array_element_expression array:(_) @variable.array)
|
|
141
|
+
(slice_expression array:(_) @variable.array)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
(comment) @comment
|
|
146
|
+
|
|
147
|
+
([ "=>" "," ";" "->" ] @punctuation.delimiter)
|
|
148
|
+
|
|
149
|
+
(
|
|
150
|
+
[ "[" "]" "{" "}" "(" ")" ] @punctuation.bracket
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
(_
|
|
154
|
+
"{" @punctuation.special
|
|
155
|
+
(varname)
|
|
156
|
+
"}" @punctuation.special)
|
|
157
|
+
|
|
158
|
+
(varname
|
|
159
|
+
(block
|
|
160
|
+
"{" @punctuation.special
|
|
161
|
+
"}" @punctuation.special))
|
|
162
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
; an injections.scm file for nvim-treesitter
|
|
2
|
+
((comment) @injection.content
|
|
3
|
+
(#set! injection.language "comment"))
|
|
4
|
+
|
|
5
|
+
((pod) @injection.content
|
|
6
|
+
(#set! injection.language "pod"))
|
|
7
|
+
|
|
8
|
+
((substitution_regexp
|
|
9
|
+
(replacement) @injection.content
|
|
10
|
+
(substitution_regexp_modifiers) @_modifiers)
|
|
11
|
+
; match if there's a single `e` in the modifiers list
|
|
12
|
+
(#match? @_modifiers "e")
|
|
13
|
+
(#not-match? @_modifiers "e.*e")
|
|
14
|
+
(#set! injection.language "perl"))
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
(conditional_statement
|
|
2
|
+
["if" "unless"] @open.if
|
|
3
|
+
"elsif"? @mid.if.1
|
|
4
|
+
"else"? @mid.if.2
|
|
5
|
+
(block "}" @close.if) .
|
|
6
|
+
) @scope.if
|
|
7
|
+
|
|
8
|
+
(_
|
|
9
|
+
["for" "foreach" "while" "unless"] @open.loop
|
|
10
|
+
(block "}" @close.loop) .
|
|
11
|
+
) @scope.loop
|
|
12
|
+
(loopex_expression) @mid.loop.1
|
|
13
|
+
|
|
14
|
+
(_
|
|
15
|
+
"sub" @open.fun
|
|
16
|
+
(block "}" @close.fun) .
|
|
17
|
+
) @scope.fun
|
|
18
|
+
(return_expression "return" @mid.fun.1)
|
|
19
|
+
|
|
20
|
+
[
|
|
21
|
+
(_ "'" @open.quotelike (string_content) "'" @close.quotelike)
|
|
22
|
+
(quoted_regexp "'" @open.quotelike "'" @close.quotelike)
|
|
23
|
+
(_ "'" @open.quotelike (_) "'"+ @mid.quotelike.1 (replacement) "'" @close.quotelike)
|
|
24
|
+
] @scope.quotelike
|
|
25
|
+
|
|
26
|
+
(try_statement
|
|
27
|
+
"try" @open.try
|
|
28
|
+
"catch"? @mid.try.1
|
|
29
|
+
"finally"? @close.try
|
|
30
|
+
) @scope.try
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/out/r/tree-sitter-r.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[
|
|
2
|
+
"@at-root"
|
|
3
|
+
"@debug"
|
|
4
|
+
"@error"
|
|
5
|
+
"@extend"
|
|
6
|
+
"@forward"
|
|
7
|
+
"@mixin"
|
|
8
|
+
"@use"
|
|
9
|
+
"@warn"
|
|
10
|
+
] @keyword
|
|
11
|
+
|
|
12
|
+
"@function" @keyword.function
|
|
13
|
+
|
|
14
|
+
"@return" @keyword.return
|
|
15
|
+
|
|
16
|
+
"@include" @keyword.import
|
|
17
|
+
|
|
18
|
+
[
|
|
19
|
+
"@while"
|
|
20
|
+
"@each"
|
|
21
|
+
"@for"
|
|
22
|
+
"from"
|
|
23
|
+
"through"
|
|
24
|
+
"in"
|
|
25
|
+
] @keyword.repeat
|
|
26
|
+
|
|
27
|
+
(js_comment) @comment @spell
|
|
28
|
+
|
|
29
|
+
(function_name) @function
|
|
30
|
+
|
|
31
|
+
[
|
|
32
|
+
">="
|
|
33
|
+
"<="
|
|
34
|
+
] @operator
|
|
35
|
+
|
|
36
|
+
(mixin_statement
|
|
37
|
+
name: (identifier) @function)
|
|
38
|
+
|
|
39
|
+
(mixin_statement
|
|
40
|
+
(parameters
|
|
41
|
+
(parameter) @variable.parameter))
|
|
42
|
+
|
|
43
|
+
(function_statement
|
|
44
|
+
name: (identifier) @function)
|
|
45
|
+
|
|
46
|
+
(function_statement
|
|
47
|
+
(parameters
|
|
48
|
+
(parameter) @variable.parameter))
|
|
49
|
+
|
|
50
|
+
(plain_value) @string
|
|
51
|
+
|
|
52
|
+
(keyword_query) @function
|
|
53
|
+
|
|
54
|
+
(identifier) @variable
|
|
55
|
+
|
|
56
|
+
(variable) @variable
|
|
57
|
+
|
|
58
|
+
(argument) @variable.parameter
|
|
59
|
+
|
|
60
|
+
(arguments
|
|
61
|
+
(variable) @variable.parameter)
|
|
62
|
+
|
|
63
|
+
[
|
|
64
|
+
"["
|
|
65
|
+
"]"
|
|
66
|
+
] @punctuation.bracket
|
|
67
|
+
|
|
68
|
+
(include_statement
|
|
69
|
+
(identifier) @function)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-wasms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Pre-built WebAssembly binaries for tree-sitter grammars.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tree-sitter",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@6cdh/tree-sitter-scheme": "0.24.7-1",
|
|
25
25
|
"@eagleoutice/tree-sitter-r": "^1.1.2",
|
|
26
26
|
"@elm-tooling/tree-sitter-elm": "^5.9.0",
|
|
27
|
+
"@tree-sitter-grammars/tree-sitter-hcl": "^1.2.0",
|
|
27
28
|
"@tree-sitter-grammars/tree-sitter-lua": "^0.4.1",
|
|
28
29
|
"@tree-sitter-grammars/tree-sitter-markdown": "^0.3.2",
|
|
29
30
|
"@tree-sitter-grammars/tree-sitter-toml": "^0.7.0",
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"tree-sitter-json": "^0.24.8",
|
|
54
55
|
"tree-sitter-julia": "git+https://github.com/tree-sitter/tree-sitter-julia.git",
|
|
55
56
|
"tree-sitter-kotlin": "^0.3.8",
|
|
57
|
+
"tree-sitter-nix": "git+https://github.com/nix-community/tree-sitter-nix.git",
|
|
56
58
|
"tree-sitter-objc": "^3.0.2",
|
|
57
59
|
"tree-sitter-ocaml": "^0.24.2",
|
|
58
60
|
"tree-sitter-perl": "git+https://github.com/tree-sitter-perl/tree-sitter-perl.git#release",
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
"tree-sitter-ruby": "^0.23.1",
|
|
65
67
|
"tree-sitter-rust": "^0.24.0",
|
|
66
68
|
"tree-sitter-scala": "^0.24.0",
|
|
69
|
+
"tree-sitter-scss": "^1.0.0",
|
|
67
70
|
"tree-sitter-sql": "^0.1.0",
|
|
68
71
|
"tree-sitter-swift": "^0.7.1",
|
|
69
72
|
"tree-sitter-typescript": "^0.23.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|