ts-wasms 2.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.
Files changed (150) hide show
  1. package/README.md +7 -0
  2. package/index.d.ts +107 -94
  3. package/index.js +21 -0
  4. package/manifest.json +620 -0
  5. package/out/ada/folds.scm +15 -0
  6. package/out/ada/highlights.scm +196 -0
  7. package/out/ada/injections.scm +2 -0
  8. package/out/ada/locals.scm +33 -0
  9. package/out/ada/textobjects.scm +23 -0
  10. package/out/ada/tree-sitter-ada.wasm +0 -0
  11. package/out/arduino/folds.scm +1 -0
  12. package/out/arduino/highlights.scm +48 -0
  13. package/out/arduino/indents.scm +1 -0
  14. package/out/arduino/injections.scm +1 -0
  15. package/out/arduino/locals.scm +1 -0
  16. package/out/arduino/tags.scm +5 -0
  17. package/out/arduino/tree-sitter-arduino.wasm +0 -0
  18. package/out/awk/highlights.scm +122 -0
  19. package/out/awk/injections.scm +17 -0
  20. package/out/awk/tree-sitter-awk.wasm +0 -0
  21. package/out/bibtex/folds.scm +1 -0
  22. package/out/bibtex/highlights.scm +47 -0
  23. package/out/bibtex/indents.scm +8 -0
  24. package/out/bibtex/injections.scm +2 -0
  25. package/out/bibtex/locals.scm +0 -0
  26. package/out/bibtex/tags.scm +0 -0
  27. package/out/bibtex/tree-sitter-bibtex.wasm +0 -0
  28. package/out/c_sharp/folds.scm +17 -0
  29. package/out/c_sharp/injections.scm +2 -0
  30. package/out/c_sharp/locals.scm +42 -0
  31. package/out/cairo/folds.scm +26 -0
  32. package/out/cairo/highlights.scm +372 -0
  33. package/out/cairo/indents.scm +134 -0
  34. package/out/cairo/injections.scm +3 -0
  35. package/out/cairo/locals.scm +28 -0
  36. package/out/cairo/textobjects.scm +79 -0
  37. package/out/cairo/tree-sitter-cairo.wasm +0 -0
  38. package/out/cuda/folds.scm +1 -0
  39. package/out/cuda/highlights.scm +17 -0
  40. package/out/cuda/indents.scm +1 -0
  41. package/out/cuda/injections.scm +1 -0
  42. package/out/cuda/locals.scm +1 -0
  43. package/out/cuda/tree-sitter-cuda.wasm +0 -0
  44. package/out/d/folds.scm +4 -0
  45. package/out/d/helix-highlights.scm +241 -0
  46. package/out/d/helix-indents.scm +17 -0
  47. package/out/d/helix-injections.scm +2 -0
  48. package/out/d/helix-textobjects.scm +9 -0
  49. package/out/d/highlights.scm +259 -0
  50. package/out/d/indents.scm +17 -0
  51. package/out/d/injections.scm +2 -0
  52. package/out/d/locals.scm +79 -0
  53. package/out/d/nova-folds.scm +6 -0
  54. package/out/d/nova-highlights.scm +283 -0
  55. package/out/d/nova-symbols.scm +23 -0
  56. package/out/d/tags.scm +28 -0
  57. package/out/d/textobjects.scm +9 -0
  58. package/out/d/tree-sitter-d.wasm +0 -0
  59. package/out/desktop/folds.scm +1 -0
  60. package/out/desktop/highlights.scm +91 -0
  61. package/out/desktop/injections.scm +8 -0
  62. package/out/desktop/tree-sitter-desktop.wasm +0 -0
  63. package/out/devicetree/folds.scm +1 -0
  64. package/out/devicetree/highlights.scm +78 -0
  65. package/out/devicetree/indents.scm +12 -0
  66. package/out/devicetree/injections.scm +2 -0
  67. package/out/devicetree/locals.scm +4 -0
  68. package/out/devicetree/tree-sitter-devicetree.wasm +0 -0
  69. package/out/embedded_template/injections.scm +7 -0
  70. package/out/git_config/folds.scm +2 -0
  71. package/out/git_config/injections.scm +69 -0
  72. package/out/git_rebase/injections.scm +8 -0
  73. package/out/gleam/folds.scm +7 -0
  74. package/out/gleam/highlights.scm +137 -0
  75. package/out/gleam/indents.scm +28 -0
  76. package/out/gleam/injections.scm +3 -0
  77. package/out/gleam/locals.scm +17 -0
  78. package/out/gleam/tags.scm +41 -0
  79. package/out/gleam/tree-sitter-gleam.wasm +0 -0
  80. package/out/glsl/folds.scm +1 -0
  81. package/out/glsl/highlights.scm +115 -0
  82. package/out/glsl/indents.scm +1 -0
  83. package/out/glsl/injections.scm +1 -0
  84. package/out/glsl/locals.scm +1 -0
  85. package/out/glsl/tree-sitter-glsl.wasm +0 -0
  86. package/out/godot_resource/folds.scm +1 -0
  87. package/out/godot_resource/highlights.scm +49 -0
  88. package/out/godot_resource/injections.scm +2 -0
  89. package/out/godot_resource/locals.scm +1 -0
  90. package/out/kdl/folds.scm +8 -0
  91. package/out/kdl/highlights.scm +58 -0
  92. package/out/kdl/indents.scm +7 -0
  93. package/out/kdl/injections.scm +4 -0
  94. package/out/kdl/locals.scm +10 -0
  95. package/out/kdl/tree-sitter-kdl.wasm +0 -0
  96. package/out/liquid/highlights.scm +119 -0
  97. package/out/liquid/injections.scm +22 -0
  98. package/out/liquid/tree-sitter-liquid.wasm +0 -0
  99. package/out/ocaml_interface/folds.scm +1 -0
  100. package/out/ocaml_interface/indents.scm +1 -0
  101. package/out/ocaml_interface/injections.scm +1 -0
  102. package/out/php_only/folds.scm +19 -0
  103. package/out/php_only/indents.scm +68 -0
  104. package/out/php_only/locals.scm +84 -0
  105. package/out/solidity/folds.scm +20 -0
  106. package/out/solidity/highlights-nvim.scm +309 -0
  107. package/out/solidity/highlights.scm +217 -0
  108. package/out/solidity/injections.scm +14 -0
  109. package/out/solidity/locals.scm +9 -0
  110. package/out/solidity/tags.scm +43 -0
  111. package/out/solidity/tree-sitter-solidity.wasm +0 -0
  112. package/package.json +18 -2
  113. package/out/vim/folds.scm +0 -4
  114. package/out/vim/highlights.scm +0 -362
  115. package/out/vim/injections.scm +0 -44
  116. package/out/vim/locals.scm +0 -19
  117. package/out/vim/tree-sitter-vim.wasm +0 -0
  118. /package/out/{c-sharp → c_sharp}/highlights.scm +0 -0
  119. /package/out/{c-sharp → c_sharp}/tags.scm +0 -0
  120. /package/out/{c-sharp/tree-sitter-c-sharp.wasm → c_sharp/tree-sitter-c_sharp.wasm} +0 -0
  121. /package/out/{embedded-template → embedded_template}/highlights.scm +0 -0
  122. /package/out/{embedded-template → embedded_template}/injections-ejs.scm +0 -0
  123. /package/out/{embedded-template → embedded_template}/injections-erb.scm +0 -0
  124. /package/out/{embedded-template → embedded_template}/injections-etlua.scm +0 -0
  125. /package/out/{embedded-template/tree-sitter-embedded-template.wasm → embedded_template/tree-sitter-embedded_template.wasm} +0 -0
  126. /package/out/{git-config → git_config}/highlights.scm +0 -0
  127. /package/out/{git-config/tree-sitter-git-config.wasm → git_config/tree-sitter-git_config.wasm} +0 -0
  128. /package/out/{git-rebase → git_rebase}/highlights.scm +0 -0
  129. /package/out/{git-rebase/tree-sitter-git-rebase.wasm → git_rebase/tree-sitter-git_rebase.wasm} +0 -0
  130. /package/out/{godot-resource/tree-sitter-godot-resource.wasm → godot_resource/tree-sitter-godot_resource.wasm} +0 -0
  131. /package/out/{markdown-inline → markdown_inline}/highlights.scm +0 -0
  132. /package/out/{markdown-inline → markdown_inline}/injections.scm +0 -0
  133. /package/out/{markdown-inline/tree-sitter-markdown-inline.wasm → markdown_inline/tree-sitter-markdown_inline.wasm} +0 -0
  134. /package/out/{ocaml-interface → ocaml_interface}/highlights.scm +0 -0
  135. /package/out/{ocaml-interface → ocaml_interface}/locals.scm +0 -0
  136. /package/out/{ocaml-interface → ocaml_interface}/tags.scm +0 -0
  137. /package/out/{ocaml-interface/tree-sitter-ocaml-interface.wasm → ocaml_interface/tree-sitter-ocaml_interface.wasm} +0 -0
  138. /package/out/{ocaml-type → ocaml_type}/highlights.scm +0 -0
  139. /package/out/{ocaml-type → ocaml_type}/locals.scm +0 -0
  140. /package/out/{ocaml-type → ocaml_type}/tags.scm +0 -0
  141. /package/out/{ocaml-type/tree-sitter-ocaml-type.wasm → ocaml_type/tree-sitter-ocaml_type.wasm} +0 -0
  142. /package/out/{php-only → php_only}/highlights.scm +0 -0
  143. /package/out/{php-only → php_only}/injections-text.scm +0 -0
  144. /package/out/{php-only → php_only}/injections.scm +0 -0
  145. /package/out/{php-only → php_only}/tags.scm +0 -0
  146. /package/out/{php-only/tree-sitter-php-only.wasm → php_only/tree-sitter-php_only.wasm} +0 -0
  147. /package/out/{csv-psv → psv}/highlights.scm +0 -0
  148. /package/out/{csv-psv/tree-sitter-csv-psv.wasm → psv/tree-sitter-psv.wasm} +0 -0
  149. /package/out/{csv-tsv → tsv}/highlights.scm +0 -0
  150. /package/out/{csv-tsv/tree-sitter-csv-tsv.wasm → tsv/tree-sitter-tsv.wasm} +0 -0
@@ -0,0 +1,43 @@
1
+ ;; Method and Function declarations
2
+ (contract_declaration (_
3
+ (function_definition
4
+ name: (identifier) @name) @definition.method))
5
+
6
+ (source_file
7
+ (function_definition
8
+ name: (identifier) @name) @definition.function)
9
+
10
+ ;; Contract, struct, enum and interface declarations
11
+ (contract_declaration
12
+ name: (identifier) @name) @definition.class
13
+
14
+ (interface_declaration
15
+ name: (identifier) @name) @definition.interface
16
+
17
+ (library_declaration
18
+ name: (identifier) @name) @definition.interface
19
+
20
+ (struct_declaration name: (identifier) @name) @definition.class
21
+ (enum_declaration name: (identifier) @name) @definition.class
22
+ (event_definition name: (identifier) @name) @definition.class
23
+
24
+ ;; Function calls
25
+ (call_expression (expression (identifier)) @name ) @reference.call
26
+
27
+ (call_expression
28
+ (expression (member_expression
29
+ property: (_) @name ))) @reference.call
30
+
31
+ ;; Log emit
32
+ (emit_statement name: (_) @name) @reference.class
33
+
34
+
35
+ ;; Inheritance
36
+
37
+ (inheritance_specifier
38
+ ancestor: (user_defined_type (_) @name . )) @reference.class
39
+
40
+
41
+ ;; Imports ( note that unknown is not standardised )
42
+ (import_directive
43
+ import_name: (_) @name ) @reference.unknown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-wasms",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Pre-built WebAssembly binaries for tree-sitter grammars.",
5
5
  "keywords": [
6
6
  "incremental",
@@ -24,12 +24,14 @@
24
24
  "import": "./index.js",
25
25
  "default": "./index.js"
26
26
  },
27
+ "./manifest.json": "./manifest.json",
27
28
  "./*": "./out/*"
28
29
  },
29
30
  "files": [
30
31
  "out",
31
32
  "index.js",
32
- "index.d.ts"
33
+ "index.d.ts",
34
+ "manifest.json"
33
35
  ],
34
36
  "devEngines": {
35
37
  "packageManager": {
@@ -51,12 +53,17 @@
51
53
  "@tree-sitter-grammars/tree-sitter-xml": "^0.7.0",
52
54
  "@tree-sitter-grammars/tree-sitter-zig": "^1.1.2",
53
55
  "p-map": "^7.0.4",
56
+ "tree-sitter-ada": "git+https://github.com/briot/tree-sitter-ada.git#6b58259a08b1a22ba0247a7ce30be384db618da6",
54
57
  "tree-sitter-angular": "^0.9.2",
58
+ "tree-sitter-arduino": "^0.24.0",
55
59
  "tree-sitter-asm": "git+https://github.com/RubixDev/tree-sitter-asm.git#839741fef4dab5128952334624905c82b40c7133",
56
60
  "tree-sitter-astro": "git+https://github.com/virchau13/tree-sitter-astro.git#213f6e6973d9b456c6e50e86f19f66877e7ef0ee",
61
+ "tree-sitter-awk": "^0.7.2",
57
62
  "tree-sitter-bash": "^0.25.1",
63
+ "tree-sitter-bibtex": "git+https://github.com/latex-lsp/tree-sitter-bibtex.git#8d04ed27b3bc7929f14b7df9236797dab9f3fa66",
58
64
  "tree-sitter-c": "^0.24.1",
59
65
  "tree-sitter-c-sharp": "^0.23.5",
66
+ "tree-sitter-cairo": "git+https://github.com/starkware-libs/tree-sitter-cairo.git#8dcd77dbe7f68b2cc661031dff224dfc17bdbaf4",
60
67
  "tree-sitter-cli": "^0.26.8",
61
68
  "tree-sitter-clojure": "git+https://github.com/sogaiu/tree-sitter-clojure.git#e43eff80d17cf34852dcd92ca5e6986d23a7040f",
62
69
  "tree-sitter-cmake": "git+https://github.com/uyha/tree-sitter-cmake.git#c7b2a71e7f8ecb167fad4c97227c838439280175",
@@ -65,7 +72,11 @@
65
72
  "tree-sitter-cpp": "^0.23.4",
66
73
  "tree-sitter-css": "^0.25.0",
67
74
  "tree-sitter-csv": "git+https://github.com/tree-sitter-grammars/tree-sitter-csv.git#f6bf6e35eb0b95fbadea4bb39cb9709507fcb181",
75
+ "tree-sitter-cuda": "^0.21.1",
76
+ "tree-sitter-d": "git+https://github.com/gdamore/tree-sitter-d.git#fb028c8f14f4188286c2eef143f105def6fbf24f",
68
77
  "tree-sitter-dart": "^1.0.0",
78
+ "tree-sitter-desktop": "git+https://github.com/ValdezFOmar/tree-sitter-desktop.git#954da7259e0f6c3bb4f811fddce11eb5ac94d9f6",
79
+ "tree-sitter-devicetree": "^0.15.0",
69
80
  "tree-sitter-diff": "git+https://github.com/tree-sitter-grammars/tree-sitter-diff.git#2520c3f934b3179bb540d23e0ef45f75304b5fed",
70
81
  "tree-sitter-dockerfile": "git+https://github.com/camdencheek/tree-sitter-dockerfile.git#971acdd908568b4531b0ba28a445bf0bb720aba5",
71
82
  "tree-sitter-editorconfig": "git+https://github.com/ValdezFOmar/tree-sitter-editorconfig.git#bfd74395e393f56ba58db953458b346f02d6f7b2",
@@ -80,6 +91,8 @@
80
91
  "tree-sitter-git-rebase": "git+https://github.com/the-mikedavis/tree-sitter-git-rebase.git#39bf3b7566c86ccffd70aaa5105c7c8b76788975",
81
92
  "tree-sitter-gitattributes": "^0.1.6",
82
93
  "tree-sitter-gitignore": "git+https://github.com/shunsambongi/tree-sitter-gitignore.git#f4685bf11ac466dd278449bcfe5fd014e94aa504",
94
+ "tree-sitter-gleam": "git+https://github.com/gleam-lang/tree-sitter-gleam.git#4e4643c2215c2b2343d9ec179c798818c132c9cc",
95
+ "tree-sitter-glsl": "^0.2.0",
83
96
  "tree-sitter-go": "^0.25.0",
84
97
  "tree-sitter-godot-resource": "^0.7.0",
85
98
  "tree-sitter-graphql": "git+https://github.com/joowani/tree-sitter-graphql.git#df5b88d1d24dcfc02e64919d2d20491359abe4c8",
@@ -91,7 +104,9 @@
91
104
  "tree-sitter-javascript": "^0.25.0",
92
105
  "tree-sitter-json": "^0.24.8",
93
106
  "tree-sitter-julia": "git+https://github.com/tree-sitter/tree-sitter-julia.git#e0f9dcd180fdcfcfa8d79a3531e11d99e79321d3",
107
+ "tree-sitter-kdl": "git+https://github.com/tree-sitter-grammars/tree-sitter-kdl.git#b37e3d58e5c5cf8d739b315d6114e02d42e66664",
94
108
  "tree-sitter-kotlin": "^0.3.8",
109
+ "tree-sitter-liquid": "git+https://github.com/hankthetank27/tree-sitter-liquid.git#e45dbac8c5fa95b1f0e00e7e0c04bc8855823391",
95
110
  "tree-sitter-matlab": "git+https://github.com/acristoffers/tree-sitter-matlab.git#c2390a59016f74e7d5f75ef09510768b4f30217e",
96
111
  "tree-sitter-nim": "git+https://github.com/alaviss/tree-sitter-nim.git#3878440d9398515ae053c6f6024986e69868bb74",
97
112
  "tree-sitter-nix": "git+https://github.com/nix-community/tree-sitter-nix.git#69fbfb02896cdd27cb7ff3cd61f7f3f6bde4f017",
@@ -108,6 +123,7 @@
108
123
  "tree-sitter-rust": "^0.24.0",
109
124
  "tree-sitter-scala": "^0.24.0",
110
125
  "tree-sitter-scss": "^1.0.0",
126
+ "tree-sitter-solidity": "^1.2.13",
111
127
  "tree-sitter-swift": "^0.7.1",
112
128
  "tree-sitter-typescript": "^0.23.2",
113
129
  "tree-sitter-vim": "git+https://github.com/tree-sitter-grammars/tree-sitter-vim.git#3092fcd99eb87bbd0fc434aa03650ba58bd5b43b",
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
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
File without changes