@willbooster/tree-sitter-c 17.0.0 → 18.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 +3 -3
- package/tree-sitter-c.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -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 15.0.0 or later within 15.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. The parser carries the ABI number of the WillBooster/tree-sitter generator (`0x5742000b`), 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';
|
|
@@ -119,12 +119,12 @@ arrays, parenthesized/function declarators, initializers and multiple declarator
|
|
|
119
119
|
|
|
120
120
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c) and on
|
|
121
121
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
122
|
-
fuzzed with, at version
|
|
122
|
+
fuzzed with, at version 15.0.0 or later within 15.x. No other runtime loads the parser:
|
|
123
123
|
|
|
124
124
|
```toml
|
|
125
125
|
[dependencies]
|
|
126
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
127
|
-
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "
|
|
126
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "15.0.0" }
|
|
127
|
+
tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "18" }
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
```rust
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "C grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@vitest/browser-playwright": "5.0.5",
|
|
59
59
|
"@willbooster/oxlint-config": "1.4.9",
|
|
60
60
|
"@willbooster/wb": "22.29.3",
|
|
61
|
-
"@willbooster/web-tree-sitter": "
|
|
61
|
+
"@willbooster/web-tree-sitter": "15.0.0",
|
|
62
62
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
63
63
|
"lefthook": "2.2.2",
|
|
64
64
|
"oxlint": "1.88.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"wrangler": "4.151.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@willbooster/web-tree-sitter": "^
|
|
72
|
+
"@willbooster/web-tree-sitter": "^15.0.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-c.wasm
CHANGED
|
Binary file
|