@willbooster/tree-sitter-zig 12.0.0 → 13.0.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/README.md +4 -4
- package/package.json +9 -9
- package/tree-sitter-zig.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,9 @@ Zig grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forke
|
|
|
13
13
|
to its authors and contributors. This is not an official release of that project.
|
|
14
14
|
|
|
15
15
|
This fork builds on the grammar of upstream's version 1.1.2 and generates the parser with the
|
|
16
|
-
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries ABI `
|
|
16
|
+
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries ABI `0x5742000d`,
|
|
17
17
|
which upstream's tree-sitter runtimes reject, and is tested and supported with the WillBooster/tree-sitter runtime,
|
|
18
|
-
version
|
|
18
|
+
version 23.0.0 or later in the 23.x series. It parses as the parser in upstream's 1.1.2 packages does, with these
|
|
19
19
|
exceptions:
|
|
20
20
|
|
|
21
21
|
- In the ranges a `for` loop iterates over, a range end whose first token can both start an expression and continue
|
|
@@ -61,7 +61,7 @@ may change; such changes are released as new major versions.
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
63
63
|
The npm package ships `tree-sitter-zig.wasm` for
|
|
64
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
64
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 23.0.0 or later in the 23.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
|
|
65
65
|
In Node.js and Bun, load the grammar from its path:
|
|
66
66
|
|
|
67
67
|
```js
|
|
@@ -109,7 +109,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
109
109
|
fuzzed with:
|
|
110
110
|
|
|
111
111
|
```sh
|
|
112
|
-
cargo add willbooster-tree-sitter@
|
|
112
|
+
cargo add willbooster-tree-sitter@23.0.0 --rename tree-sitter
|
|
113
113
|
cargo add willbooster-tree-sitter-zig --rename tree-sitter-zig
|
|
114
114
|
```
|
|
115
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-zig",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Zig grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parsing",
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tsconfig/bun": "1.0.11",
|
|
48
48
|
"@types/bun": "1.4.4",
|
|
49
|
-
"@vitest/browser-playwright": "5.0
|
|
49
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
50
50
|
"@willbooster/oxlint-config": "1.4.9",
|
|
51
|
-
"@willbooster/wb": "23.3.
|
|
52
|
-
"@willbooster/web-tree-sitter": "
|
|
51
|
+
"@willbooster/wb": "23.3.4",
|
|
52
|
+
"@willbooster/web-tree-sitter": "23.0.0",
|
|
53
53
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
54
54
|
"lefthook": "2.2.2",
|
|
55
|
-
"oxlint": "1.
|
|
56
|
-
"oxlint-tsgolint": "7.0.
|
|
57
|
-
"playwright": "1.
|
|
55
|
+
"oxlint": "1.92.0",
|
|
56
|
+
"oxlint-tsgolint": "7.0.2006",
|
|
57
|
+
"playwright": "1.65.0",
|
|
58
58
|
"semantic-release": "25.0.9",
|
|
59
|
-
"vitest": "5.0
|
|
59
|
+
"vitest": "5.1.0",
|
|
60
60
|
"wrangler": "4.156.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@willbooster/web-tree-sitter": "^
|
|
63
|
+
"@willbooster/web-tree-sitter": "^23.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-zig.wasm
CHANGED
|
Binary file
|