@willbooster/tree-sitter-c-sharp 3.0.5 → 4.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 +8 -7
- package/package.json +4 -4
- package/tree-sitter-c_sharp.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-sharp/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-c-sharp/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-sharp)
|
|
10
10
|
|
|
11
11
|
C# grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
|
@@ -33,8 +33,9 @@ Known gaps:
|
|
|
33
33
|
|
|
34
34
|
The npm package ships `tree-sitter-c_sharp.wasm` for
|
|
35
35
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
|
|
36
|
-
browsers, and Cloudflare Workers.
|
|
37
|
-
|
|
36
|
+
browsers, and Cloudflare Workers. The parser carries the ABI number of WillBooster/tree-sitter, so it loads only with
|
|
37
|
+
that runtime, version 2.0.0 or later; upstream's runtime rejects it. Install the runtime alongside the grammar when using
|
|
38
|
+
the Wasm parser; it remains an optional peer for consumers that only use the grammar source or queries.
|
|
38
39
|
|
|
39
40
|
In Node.js and Bun, load it from the package:
|
|
40
41
|
|
|
@@ -79,12 +80,12 @@ The package also ships the queries in `queries/` and the node types in `src/node
|
|
|
79
80
|
|
|
80
81
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c-sharp) and on
|
|
81
82
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
82
|
-
fuzzed with. The
|
|
83
|
+
fuzzed with. The parser requires runtime 2.0.0 or later:
|
|
83
84
|
|
|
84
85
|
```toml
|
|
85
86
|
[dependencies]
|
|
86
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
87
|
-
tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "
|
|
87
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "2.0.0" }
|
|
88
|
+
tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "4" }
|
|
88
89
|
```
|
|
89
90
|
|
|
90
91
|
```rust
|
|
@@ -109,7 +110,7 @@ runtime this package ships. The first run downloads that CLI from its GitHub Rel
|
|
|
109
110
|
`cargo` (with the `cmake` that `mise.toml` pins) when the download fails or the release has no binary that runs here. The `tree-sitter-cli` package provides
|
|
110
111
|
only the types of the grammar DSL that `grammar.js` checks against; its `tree-sitter` binary is upstream's.
|
|
111
112
|
|
|
112
|
-
`bun run generate` records a fresh
|
|
113
|
+
`bun run generate` records a fresh generation profile from the applicable `test/corpus` cases and Git-tracked
|
|
113
114
|
files in `examples/`, then generates compact parser tables. The parser also embeds metadata from `tree-sitter.json`. After changing a grammar,
|
|
114
115
|
`tree-sitter.json`, a corpus case, or a tracked example,
|
|
115
116
|
regenerate and commit `src/`. Stage added or removed examples with `git add -A examples` before generation so the profile uses the intended file list.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c-sharp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "C# grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@vitest/browser-playwright": "5.0.3",
|
|
48
48
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
49
49
|
"@willbooster/oxlint-config": "1.4.8",
|
|
50
|
-
"@willbooster/wb": "22.
|
|
51
|
-
"@willbooster/web-tree-sitter": "
|
|
50
|
+
"@willbooster/wb": "22.24.0",
|
|
51
|
+
"@willbooster/web-tree-sitter": "2.0.1",
|
|
52
52
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
53
53
|
"lefthook": "2.1.16",
|
|
54
54
|
"oxfmt": "0.71.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"wrangler": "4.147.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@willbooster/web-tree-sitter": "^
|
|
67
|
+
"@willbooster/web-tree-sitter": "^2.0.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|