@willbooster/tree-sitter-c 15.0.2 → 16.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 +5 -5
- package/tree-sitter-c.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-c/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-c/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-c)
|
|
10
10
|
|
|
11
11
|
C grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
|
@@ -18,7 +18,7 @@ This fork fixes parsing bugs and raises conformance with the ISO C standard
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
20
|
The npm package ships `tree-sitter-c.wasm` for
|
|
21
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
21
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 13.0.0 or later within 13.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. The parser carries the ABI number of the WillBooster/tree-sitter generator (`0x57420009`), so it loads only with that runtime; upstream tree-sitter runtimes reject it. In Node.js and Bun, load the grammar from its path:
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
24
|
import { fileURLToPath } from 'node:url';
|
|
@@ -118,12 +118,12 @@ arrays, parenthesized/function declarators, initializers and multiple declarator
|
|
|
118
118
|
|
|
119
119
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c) and on
|
|
120
120
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
121
|
-
fuzzed with, at version
|
|
121
|
+
fuzzed with, at version 13.0.0 or later within 13.x. No other runtime loads the parser:
|
|
122
122
|
|
|
123
123
|
```toml
|
|
124
124
|
[dependencies]
|
|
125
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
126
|
-
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "
|
|
125
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "13.0.0" }
|
|
126
|
+
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "16" }
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
```rust
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "C grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@vitest/browser-playwright": "5.0.3",
|
|
55
55
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
56
56
|
"@willbooster/oxlint-config": "1.4.8",
|
|
57
|
-
"@willbooster/wb": "22.26.
|
|
58
|
-
"@willbooster/web-tree-sitter": "
|
|
57
|
+
"@willbooster/wb": "22.26.3",
|
|
58
|
+
"@willbooster/web-tree-sitter": "13.0.0",
|
|
59
59
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
60
60
|
"lefthook": "2.2.2",
|
|
61
61
|
"oxfmt": "0.73.0",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"oxlint-tsgolint": "7.0.2004",
|
|
64
64
|
"playwright": "1.64.0",
|
|
65
65
|
"semantic-release": "25.0.9",
|
|
66
|
-
"sort-package-json": "4.
|
|
66
|
+
"sort-package-json": "4.1.0",
|
|
67
67
|
"vitest": "5.0.3",
|
|
68
68
|
"wrangler": "4.149.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@willbooster/web-tree-sitter": "^
|
|
71
|
+
"@willbooster/web-tree-sitter": "^13.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-c.wasm
CHANGED
|
Binary file
|