tree-sitter-wasm 1.0.4 → 1.0.5
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 +2 -0
- package/manifest.json +11 -0
- package/out/razor/folds.scm +14 -0
- package/out/razor/highlights.scm +61 -0
- package/out/razor/injections.scm +11 -0
- package/out/razor/tree-sitter-razor.wasm +0 -0
- package/out/sln/folds.scm +5 -0
- package/out/sln/highlights.scm +31 -0
- package/out/sln/tags.scm +14 -0
- package/out/sln/textobjects.scm +16 -0
- package/out/sln/tree-sitter-sln.wasm +0 -0
- package/package.json +3 -1
package/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export type QueryMap = {
|
|
|
84
84
|
"query": "folds" | "highlights" | "indents" | "injections" | "locals";
|
|
85
85
|
"r": "highlights" | "indents" | "injections" | "locals" | "tags";
|
|
86
86
|
"racket": "folds" | "highlights" | "injections" | "locals" | "tags";
|
|
87
|
+
"razor": "folds" | "highlights" | "injections";
|
|
87
88
|
"regex": "highlights";
|
|
88
89
|
"requirements": "highlights" | "injections";
|
|
89
90
|
"ruby": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
|
|
@@ -91,6 +92,7 @@ export type QueryMap = {
|
|
|
91
92
|
"scala": "folds" | "highlights" | "indents" | "injections" | "locals" | "tags";
|
|
92
93
|
"scheme": "folds" | "highlights" | "injections";
|
|
93
94
|
"scss": "folds" | "highlights" | "indents" | "injections";
|
|
95
|
+
"sln": "folds" | "highlights" | "tags" | "textobjects";
|
|
94
96
|
"solidity": "folds" | "highlights" | "highlights-nvim" | "injections" | "locals" | "tags";
|
|
95
97
|
"sql": "folds" | "highlights" | "indents" | "injections";
|
|
96
98
|
"ssh_config": "folds" | "highlights" | "indents" | "injections" | "locals";
|
package/manifest.json
CHANGED
|
@@ -540,6 +540,11 @@
|
|
|
540
540
|
"locals",
|
|
541
541
|
"tags"
|
|
542
542
|
],
|
|
543
|
+
"razor": [
|
|
544
|
+
"folds",
|
|
545
|
+
"highlights",
|
|
546
|
+
"injections"
|
|
547
|
+
],
|
|
543
548
|
"regex": [
|
|
544
549
|
"highlights"
|
|
545
550
|
],
|
|
@@ -582,6 +587,12 @@
|
|
|
582
587
|
"indents",
|
|
583
588
|
"injections"
|
|
584
589
|
],
|
|
590
|
+
"sln": [
|
|
591
|
+
"folds",
|
|
592
|
+
"highlights",
|
|
593
|
+
"tags",
|
|
594
|
+
"textobjects"
|
|
595
|
+
],
|
|
585
596
|
"solidity": [
|
|
586
597
|
"folds",
|
|
587
598
|
"highlights",
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
; inherits: c_sharp
|
|
2
|
+
|
|
3
|
+
[
|
|
4
|
+
(razor_comment)
|
|
5
|
+
(html_comment)
|
|
6
|
+
] @comment
|
|
7
|
+
|
|
8
|
+
[
|
|
9
|
+
"at_page"
|
|
10
|
+
"at_using"
|
|
11
|
+
"at_model"
|
|
12
|
+
"at_rendermode"
|
|
13
|
+
"at_inject"
|
|
14
|
+
"at_implements"
|
|
15
|
+
"at_layout"
|
|
16
|
+
"at_inherits"
|
|
17
|
+
"at_attribute"
|
|
18
|
+
"at_typeparam"
|
|
19
|
+
"at_namespace"
|
|
20
|
+
"at_preservewhitespace"
|
|
21
|
+
"at_block"
|
|
22
|
+
"at_at_escape"
|
|
23
|
+
"at_colon_transition"
|
|
24
|
+
] @constant.macro
|
|
25
|
+
|
|
26
|
+
[
|
|
27
|
+
"at_lock"
|
|
28
|
+
"at_section"
|
|
29
|
+
] @keyword
|
|
30
|
+
|
|
31
|
+
[
|
|
32
|
+
"at_if"
|
|
33
|
+
"at_switch"
|
|
34
|
+
] @keyword.conditional
|
|
35
|
+
|
|
36
|
+
[
|
|
37
|
+
"at_for"
|
|
38
|
+
"at_foreach"
|
|
39
|
+
"at_while"
|
|
40
|
+
"at_do"
|
|
41
|
+
] @keyword.repeat
|
|
42
|
+
|
|
43
|
+
[
|
|
44
|
+
"at_try"
|
|
45
|
+
"catch"
|
|
46
|
+
"finally"
|
|
47
|
+
] @keyword.exception
|
|
48
|
+
|
|
49
|
+
[
|
|
50
|
+
"at_implicit"
|
|
51
|
+
"at_explicit"
|
|
52
|
+
] @variable
|
|
53
|
+
|
|
54
|
+
(razor_implicit_expression
|
|
55
|
+
"at_implicit" @keyword.coroutine
|
|
56
|
+
(await_expression
|
|
57
|
+
"await" @keyword.coroutine))
|
|
58
|
+
|
|
59
|
+
(razor_rendermode) @property
|
|
60
|
+
|
|
61
|
+
(razor_attribute_name) @function
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"Project" @keyword
|
|
2
|
+
"EndProject" @keyword
|
|
3
|
+
"Global" @keyword
|
|
4
|
+
"EndGlobal" @keyword
|
|
5
|
+
"ProjectSection" @keyword
|
|
6
|
+
"EndProjectSection" @keyword
|
|
7
|
+
"GlobalSection" @keyword
|
|
8
|
+
"EndGlobalSection" @keyword
|
|
9
|
+
|
|
10
|
+
(project_section name: (identifier) @function)
|
|
11
|
+
(global_section name: (identifier) @function)
|
|
12
|
+
|
|
13
|
+
(guid_key mode: (identifier) @function)
|
|
14
|
+
(config_key mode: (identifier) @function)
|
|
15
|
+
(config_value mode: (identifier) @function)
|
|
16
|
+
|
|
17
|
+
(arch_identifier) @variable
|
|
18
|
+
|
|
19
|
+
(string) @string
|
|
20
|
+
(identifier) @string
|
|
21
|
+
|
|
22
|
+
(guid) @constant
|
|
23
|
+
(section_type) @constant
|
|
24
|
+
|
|
25
|
+
(version) @number
|
|
26
|
+
|
|
27
|
+
"=" @operator
|
|
28
|
+
"," @punctuation.delimiter
|
|
29
|
+
"|" @punctuation.delimiter
|
|
30
|
+
"." @punctuation.delimiter
|
|
31
|
+
["(" ")"] @punctuation.bracket
|
package/out/sln/tags.scm
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
; Projects act like modules/namespaces
|
|
2
|
+
(project_block
|
|
3
|
+
name: (string) @name) @module
|
|
4
|
+
|
|
5
|
+
; Sections act like functions or structural blocks
|
|
6
|
+
(project_section
|
|
7
|
+
name: (identifier) @name) @function
|
|
8
|
+
|
|
9
|
+
(global_section
|
|
10
|
+
name: (identifier) @name) @function
|
|
11
|
+
|
|
12
|
+
; Top-level properties
|
|
13
|
+
(property
|
|
14
|
+
name: (identifier) @name) @property
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
; Treat projects and the global block as top-level modules or classes
|
|
2
|
+
(project_block) @class.outer
|
|
3
|
+
(global_block) @class.outer
|
|
4
|
+
|
|
5
|
+
; Treat sections as smaller, function-like blocks
|
|
6
|
+
(project_section) @function.outer
|
|
7
|
+
(global_section) @function.outer
|
|
8
|
+
|
|
9
|
+
; Assignments (Key-Value pairs and properties)
|
|
10
|
+
(key_value_pair
|
|
11
|
+
key: (_) @assignment.lhs
|
|
12
|
+
value: (_) @assignment.rhs) @assignment.outer
|
|
13
|
+
|
|
14
|
+
(property
|
|
15
|
+
name: (identifier) @assignment.lhs
|
|
16
|
+
version: (version) @assignment.rhs) @assignment.outer
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tree-sitter-wasm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Pre-built WebAssembly binaries and queries for tree-sitter grammars.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -130,12 +130,14 @@
|
|
|
130
130
|
"tree-sitter-python": "^0.25.0",
|
|
131
131
|
"tree-sitter-qmljs": "^0.3.0",
|
|
132
132
|
"tree-sitter-query": "git+https://github.com/tree-sitter-grammars/tree-sitter-query.git#fc5409c6820dd5e02b0b0a309d3da2bfcde2db17",
|
|
133
|
+
"tree-sitter-razor": "git+https://github.com/tris203/tree-sitter-razor.git#a3399c26610817c6d32c7643793caf3729cfb6d2",
|
|
133
134
|
"tree-sitter-regex": "^0.25.0",
|
|
134
135
|
"tree-sitter-requirements": "^0.6.1",
|
|
135
136
|
"tree-sitter-ruby": "^0.23.1",
|
|
136
137
|
"tree-sitter-rust": "^0.24.0",
|
|
137
138
|
"tree-sitter-scala": "^0.24.0",
|
|
138
139
|
"tree-sitter-scss": "^1.0.0",
|
|
140
|
+
"tree-sitter-sln": "git+https://github.com/Crysthamus/tree-sitter-sln#0f4b3904894905fe3f8dee8c44d88b861cd4caec",
|
|
139
141
|
"tree-sitter-solidity": "^1.2.13",
|
|
140
142
|
"tree-sitter-ssh-config": "git+https://github.com/tree-sitter-grammars/tree-sitter-ssh-config.git#71d2693deadaca8cdc09e38ba41d2f6042da1616",
|
|
141
143
|
"tree-sitter-svelte": "git+https://github.com/Himujjal/tree-sitter-svelte#60ea1d673a1a3eeeb597e098d9ada9ed0c79ef4b",
|