@konomanoasa/tree-sitter-posix-awk 0.17.0 → 0.19.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/Cargo.toml +1 -1
- package/README.md +1 -1
- package/grammar.js +546 -437
- package/package.json +6 -5
- package/queries/highlights.scm +8 -13
- package/src/grammar.json +4234 -2167
- package/src/node-types.json +188 -283
- package/src/parser.c +55332 -158922
- package/src/scanner.c +1264 -255
- package/test/bindings.test.rs +608 -25
- package/tree-sitter.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@konomanoasa/tree-sitter-posix-awk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tree-sitter grammar for POSIX awk.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "npm run tree-sitter -- build-all",
|
|
24
|
-
"check": "biome check . &&
|
|
25
|
-
"
|
|
24
|
+
"check": "biome check . && tsc --noEmit",
|
|
25
|
+
"check:queries": "npm run tree-sitter -- check-queries",
|
|
26
|
+
"format": "biome format --write .",
|
|
26
27
|
"generate": "npm run tree-sitter -- generate-all",
|
|
27
28
|
"test": "npm run tree-sitter -- test-corpus --rebuild && node --test --test-concurrency=1 \"test/*.test.js\"",
|
|
28
|
-
"test:bindings": "cargo test --locked",
|
|
29
29
|
"test:fuzz": "node --test --test-name-pattern=\"fixed-seed generated histories\" test/incremental.test.js",
|
|
30
30
|
"test:fuzz:corpus": "npm run tree-sitter -- fuzz-all --iterations 100 --edits 5",
|
|
31
31
|
"test:highlights": "node --test test/highlight.test.js",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@biomejs/biome": "2.5.14",
|
|
39
39
|
"@types/node": "26.5.1",
|
|
40
|
-
"tree-sitter-cli": "0.27.0"
|
|
40
|
+
"tree-sitter-cli": "0.27.0",
|
|
41
|
+
"typescript": "7.0.2"
|
|
41
42
|
},
|
|
42
43
|
"allowScripts": {
|
|
43
44
|
"tree-sitter-cli": true
|
package/queries/highlights.scm
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[
|
|
8
8
|
(number)
|
|
9
|
-
(
|
|
9
|
+
(duplication_count)
|
|
10
10
|
] @number
|
|
11
11
|
|
|
12
12
|
(name) @variable
|
|
@@ -54,8 +54,6 @@
|
|
|
54
54
|
(or)
|
|
55
55
|
(pow_assign)
|
|
56
56
|
(sub_assign)
|
|
57
|
-
(left_anchor)
|
|
58
|
-
(right_anchor)
|
|
59
57
|
"!"
|
|
60
58
|
"$"
|
|
61
59
|
"%"
|
|
@@ -103,23 +101,23 @@
|
|
|
103
101
|
(ere
|
|
104
102
|
"/" @punctuation.delimiter)
|
|
105
103
|
|
|
106
|
-
(
|
|
104
|
+
(ordinary_character
|
|
105
|
+
!escape) @string.regexp
|
|
107
106
|
|
|
108
107
|
[
|
|
108
|
+
(collating_element_single)
|
|
109
|
+
(collating_element_multi)
|
|
109
110
|
(collating_element_content)
|
|
110
111
|
(meta_character)
|
|
111
112
|
(class_name)
|
|
112
113
|
] @character.special
|
|
113
114
|
|
|
114
|
-
(
|
|
115
|
+
(one_char_or_coll_elem_ere
|
|
115
116
|
"." @character.special)
|
|
116
117
|
|
|
117
118
|
(start_range
|
|
118
119
|
"-" @operator)
|
|
119
120
|
|
|
120
|
-
(collating_element
|
|
121
|
-
"-" @string.regexp)
|
|
122
|
-
|
|
123
121
|
(bracket_list
|
|
124
122
|
"-" @string.regexp)
|
|
125
123
|
|
|
@@ -160,15 +158,12 @@
|
|
|
160
158
|
"=" @punctuation.delimiter)
|
|
161
159
|
|
|
162
160
|
[
|
|
161
|
+
(quoted_character)
|
|
163
162
|
(escaped_delimiter)
|
|
164
163
|
(escape_sequence)
|
|
165
164
|
] @string.escape
|
|
166
165
|
|
|
167
|
-
(
|
|
168
|
-
[
|
|
169
|
-
")"
|
|
170
|
-
"}"
|
|
171
|
-
] @string.regexp)
|
|
166
|
+
(repetition_modifier) @operator
|
|
172
167
|
|
|
173
168
|
(item
|
|
174
169
|
name: [
|