@willbooster/tree-sitter-c-sharp 1.0.3 → 1.0.5
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 +6 -4
- package/package.json +3 -3
- package/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -76,9 +76,10 @@ parser.setLanguage(await Language.load(cSharp));
|
|
|
76
76
|
|
|
77
77
|
The package also ships the node types in `src/node-types.json`.
|
|
78
78
|
|
|
79
|
-
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c-sharp) and
|
|
80
|
-
[
|
|
81
|
-
fresh parses
|
|
79
|
+
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c-sharp) and on
|
|
80
|
+
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
81
|
+
fuzzed with, whose fixes keep incremental reparses consistent with fresh parses (the grammar also loads in the upstream
|
|
82
|
+
`tree-sitter` crate 0.27, whose error recovery never ends on some malformed input):
|
|
82
83
|
|
|
83
84
|
```toml
|
|
84
85
|
[dependencies]
|
|
@@ -122,7 +123,8 @@ cargo test
|
|
|
122
123
|
`cargo test` also replays edits that `tree-sitter fuzz` found to break incremental parsing, with the
|
|
123
124
|
willbooster-tree-sitter runtime that fixes them; `tree-sitter fuzz` itself runs the runtime built into tree-sitter-cli.
|
|
124
125
|
|
|
125
|
-
CI also runs these tests on Linux arm64 and macOS, where the Rust binding compiles the parser natively, and fuzzes the
|
|
126
|
+
CI also runs these tests on Linux arm64 and macOS, where the Rust binding compiles the parser natively, and fuzzes the
|
|
127
|
+
parser with libFuzzer and sanitizers on the willbooster-tree-sitter runtime locked in `Cargo.lock`
|
|
126
128
|
(`.github/workflows/robustness.yml`).
|
|
127
129
|
|
|
128
130
|
### References
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c-sharp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "C# grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lint": "bun wb lint",
|
|
29
29
|
"lint-fix": "bun wb lint --fix",
|
|
30
30
|
"prepare": "(bun lefthook install || true) && (test ! -f .lefthook/normalize-bun-lockfile.sh || bash .lefthook/normalize-bun-lockfile.sh)",
|
|
31
|
-
"release": "
|
|
31
|
+
"release": "node script/release.mjs",
|
|
32
32
|
"prestart": "bun run build-wasm",
|
|
33
33
|
"start": "tree-sitter playground",
|
|
34
34
|
"test": "bun wb test",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
47
47
|
"@willbooster/oxlint-config": "1.4.8",
|
|
48
48
|
"@willbooster/wb": "22.11.5",
|
|
49
|
-
"@willbooster/web-tree-sitter": "1.0.
|
|
49
|
+
"@willbooster/web-tree-sitter": "1.0.7",
|
|
50
50
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
51
51
|
"lefthook": "2.1.14",
|
|
52
52
|
"oxfmt": "0.70.0",
|
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|