@willbooster/tree-sitter-zig 14.0.3 → 15.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 +5 -5
- package/package.json +12 -10
- package/tree-sitter-zig.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/WillBooster/tree-sitter-zig/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-zig/actions/workflows/test-rust.yml)
|
|
7
7
|
[](https://github.com/semantic-release/semantic-release)
|
|
8
|
-
[](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
|
|
9
9
|
[](https://crates.io/crates/willbooster-tree-sitter-zig)
|
|
10
10
|
|
|
11
11
|
Zig grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
|
@@ -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 `0x5742000e`,
|
|
17
17
|
which upstream's tree-sitter runtimes reject, and is tested and supported with the WillBooster/tree-sitter runtime,
|
|
18
|
-
version 23.
|
|
18
|
+
version 23.1.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
|
|
@@ -62,7 +62,7 @@ may change; such changes are released as new major versions.
|
|
|
62
62
|
## Usage
|
|
63
63
|
|
|
64
64
|
The npm package ships `tree-sitter-zig.wasm` for
|
|
65
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 23.
|
|
65
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 23.1.0 or later in the 23.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
|
|
66
66
|
In Node.js and Bun, load the grammar from its path:
|
|
67
67
|
|
|
68
68
|
```js
|
|
@@ -110,7 +110,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
110
110
|
fuzzed with:
|
|
111
111
|
|
|
112
112
|
```sh
|
|
113
|
-
cargo add willbooster-tree-sitter@23.
|
|
113
|
+
cargo add willbooster-tree-sitter@23.1.0 --rename tree-sitter
|
|
114
114
|
cargo add willbooster-tree-sitter-zig --rename tree-sitter-zig
|
|
115
115
|
```
|
|
116
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-zig",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Zig grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parsing",
|
|
@@ -44,23 +44,25 @@
|
|
|
44
44
|
"verify-full": "bun wb verify --full"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"@semantic-release/commit-analyzer": "13.0.1",
|
|
48
|
+
"@semantic-release/release-notes-generator": "14.1.1",
|
|
47
49
|
"@tsconfig/bun": "1.0.12",
|
|
48
|
-
"@types/bun": "1.4.
|
|
49
|
-
"@vitest/browser-playwright": "5.1.
|
|
50
|
+
"@types/bun": "1.4.5",
|
|
51
|
+
"@vitest/browser-playwright": "5.1.1",
|
|
50
52
|
"@willbooster/oxlint-config": "1.4.9",
|
|
51
|
-
"@willbooster/wb": "
|
|
52
|
-
"@willbooster/web-tree-sitter": "23.
|
|
53
|
+
"@willbooster/wb": "24.3.1",
|
|
54
|
+
"@willbooster/web-tree-sitter": "23.1.1",
|
|
53
55
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
54
56
|
"lefthook": "2.2.2",
|
|
55
|
-
"oxlint": "1.
|
|
56
|
-
"oxlint-tsgolint": "7.0.
|
|
57
|
+
"oxlint": "1.94.0",
|
|
58
|
+
"oxlint-tsgolint": "7.0.2008",
|
|
57
59
|
"playwright": "1.65.1",
|
|
58
|
-
"semantic-release": "
|
|
59
|
-
"vitest": "5.1.
|
|
60
|
+
"semantic-release": "26.0.1",
|
|
61
|
+
"vitest": "5.1.1",
|
|
60
62
|
"wrangler": "4.156.0"
|
|
61
63
|
},
|
|
62
64
|
"peerDependencies": {
|
|
63
|
-
"@willbooster/web-tree-sitter": "^23.
|
|
65
|
+
"@willbooster/web-tree-sitter": "^23.1.0"
|
|
64
66
|
},
|
|
65
67
|
"peerDependenciesMeta": {
|
|
66
68
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-zig.wasm
CHANGED
|
Binary file
|