@willbooster/tree-sitter-bash 2.0.0 → 2.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/README.md +3 -3
- package/package.json +2 -2
- package/tree-sitter-bash.wasm +0 -0
- package/tree-sitter.json +1 -9
- package/src/grammar.json +0 -5000
- package/src/parser.c +0 -263210
- package/src/scanner.c +0 -1659
- package/src/tree_sitter/alloc.h +0 -54
- package/src/tree_sitter/array.h +0 -336
- package/src/tree_sitter/parser.h +0 -286
package/README.md
CHANGED
|
@@ -46,7 +46,8 @@ script/parse-examples
|
|
|
46
46
|
- the corpus in `test/corpus`, with the native build and with the Wasm build (the first run downloads the WASI SDK);
|
|
47
47
|
- an incremental-parsing check (`test/unit/incremental.test.ts`): `tree-sitter fuzz` edits each corpus case at random,
|
|
48
48
|
reparses it, undoes the edits, and reparses again. `TREE_SITTER_SEED`, `TREE_SITTER_ITERATIONS`, and
|
|
49
|
-
`TREE_SITTER_EDITS` run other or more edits
|
|
49
|
+
`TREE_SITTER_EDITS` run other or more edits. It also applies edits that random ones rarely reach and compares each
|
|
50
|
+
incremental reparse with a fresh parse;
|
|
50
51
|
- a check that real-world scripts cloned into `examples/` fail to parse exactly as listed in
|
|
51
52
|
`script/known-failures.txt`. The first run clones them, which takes a few minutes. The example repositories are
|
|
52
53
|
pinned to commits in `script/parse-examples`. After a grammar change or a moved pin alters that list,
|
|
@@ -60,8 +61,7 @@ script/parse-examples
|
|
|
60
61
|
- a performance check (`test/unit/performance.test.ts`) that a 240 KB line parses in linear time, since consumers
|
|
61
62
|
parse untrusted scripts.
|
|
62
63
|
|
|
63
|
-
CI also
|
|
64
|
-
(`.github/workflows/robustness.yml`).
|
|
64
|
+
CI also fuzzes the parser with libFuzzer and sanitizers (`.github/workflows/robustness.yml`).
|
|
65
65
|
|
|
66
66
|
### References
|
|
67
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-bash",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Bash grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"grammar.js",
|
|
19
19
|
"tree-sitter.json",
|
|
20
20
|
"queries/*",
|
|
21
|
-
"src
|
|
21
|
+
"src/node-types.json",
|
|
22
22
|
"*.wasm"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
package/tree-sitter-bash.wasm
CHANGED
|
Binary file
|
package/tree-sitter.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"metadata": {
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.1",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"description": "Bash grammar for tree-sitter",
|
|
24
24
|
"authors": [
|
|
@@ -29,13 +29,5 @@
|
|
|
29
29
|
"links": {
|
|
30
30
|
"repository": "https://github.com/WillBooster/tree-sitter-bash"
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
"bindings": {
|
|
34
|
-
"c": true,
|
|
35
|
-
"go": true,
|
|
36
|
-
"node": false,
|
|
37
|
-
"python": true,
|
|
38
|
-
"rust": false,
|
|
39
|
-
"swift": true
|
|
40
32
|
}
|
|
41
33
|
}
|