@willbooster/tree-sitter-kotlin 4.0.6 → 5.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 +7 -6
- package/package.json +4 -4
- package/tree-sitter-kotlin.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-kotlin/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-kotlin/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-kotlin)
|
|
10
10
|
|
|
11
11
|
Kotlin grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
|
@@ -18,7 +18,8 @@ This fork fixes parsing bugs and raises conformance with the Kotlin grammar.
|
|
|
18
18
|
|
|
19
19
|
The npm package ships `tree-sitter-kotlin.wasm` for
|
|
20
20
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
|
|
21
|
-
browsers, and Cloudflare Workers. The
|
|
21
|
+
browsers, and Cloudflare Workers. The parser loads only with this runtime, version 2.0.0 or later: the upstream
|
|
22
|
+
Tree-sitter runtime rejects it.
|
|
22
23
|
|
|
23
24
|
In Node.js and Bun:
|
|
24
25
|
|
|
@@ -62,12 +63,12 @@ The package also ships the node types in `src/node-types.json`.
|
|
|
62
63
|
|
|
63
64
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-kotlin) and on
|
|
64
65
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
65
|
-
fuzzed with. The
|
|
66
|
+
fuzzed with. The parser loads only with this runtime, version 2.0.0 or later:
|
|
66
67
|
|
|
67
68
|
```toml
|
|
68
69
|
[dependencies]
|
|
69
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
70
|
-
tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "
|
|
70
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "2" }
|
|
71
|
+
tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "5" }
|
|
71
72
|
```
|
|
72
73
|
|
|
73
74
|
```rust
|
|
@@ -92,7 +93,7 @@ locked in `Cargo.lock` (`script/tree-sitter`), whose generator and runtime have
|
|
|
92
93
|
`script/fork-cli` downloads that CLI into `.tmp/` from its GitHub Release on first use, or builds it with `cargo` when
|
|
93
94
|
the download fails or the release has no binary that runs here.
|
|
94
95
|
|
|
95
|
-
`bun run generate` records a fresh
|
|
96
|
+
`bun run generate` records a fresh generation profile from the applicable `test/corpus` cases and Git-tracked
|
|
96
97
|
files in `examples/`, then generates compact parser tables. The parser also embeds metadata from `tree-sitter.json`. After changing a grammar,
|
|
97
98
|
`tree-sitter.json`, a corpus case, or a tracked example,
|
|
98
99
|
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-kotlin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Kotlin grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@vitest/browser-playwright": "5.0.3",
|
|
46
46
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
47
47
|
"@willbooster/oxlint-config": "1.4.8",
|
|
48
|
-
"@willbooster/wb": "22.
|
|
49
|
-
"@willbooster/web-tree-sitter": "
|
|
48
|
+
"@willbooster/wb": "22.24.0",
|
|
49
|
+
"@willbooster/web-tree-sitter": "2.0.1",
|
|
50
50
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
51
51
|
"lefthook": "2.1.16",
|
|
52
52
|
"oxfmt": "0.71.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"wrangler": "4.147.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@willbooster/web-tree-sitter": "^
|
|
65
|
+
"@willbooster/web-tree-sitter": "^2.0.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-kotlin.wasm
CHANGED
|
Binary file
|