@willbooster/tree-sitter-kotlin 8.0.1 → 9.0.1
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/grammar.js +2 -2
- package/package.json +3 -3
- package/tree-sitter-kotlin.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 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 parser loads only with this runtime, version
|
|
21
|
+
browsers, and Cloudflare Workers. The parser loads only with this runtime, version 15.0.0 or later in the 15.x series: the upstream
|
|
22
22
|
Tree-sitter runtime rejects it.
|
|
23
23
|
|
|
24
24
|
In Node.js and Bun:
|
|
@@ -64,12 +64,12 @@ The package also ships the node types in `src/node-types.json`.
|
|
|
64
64
|
|
|
65
65
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-kotlin) and on
|
|
66
66
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
67
|
-
fuzzed with. The parser loads only with this runtime, version
|
|
67
|
+
fuzzed with. The parser loads only with this runtime, version 15.0.0 or later in the 15.x series:
|
|
68
68
|
|
|
69
69
|
```toml
|
|
70
70
|
[dependencies]
|
|
71
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
72
|
-
tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "
|
|
71
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "15.0.0" }
|
|
72
|
+
tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "9" }
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
```rust
|
package/grammar.js
CHANGED
|
@@ -420,7 +420,7 @@ module.exports = grammar({
|
|
|
420
420
|
'in',
|
|
421
421
|
$.expression,
|
|
422
422
|
')',
|
|
423
|
-
|
|
423
|
+
choice(field('body', $._control_structure_body), ';')
|
|
424
424
|
)
|
|
425
425
|
),
|
|
426
426
|
|
|
@@ -432,7 +432,7 @@ module.exports = grammar({
|
|
|
432
432
|
'(',
|
|
433
433
|
field('condition', $.expression),
|
|
434
434
|
')',
|
|
435
|
-
|
|
435
|
+
choice(field('body', $._control_structure_body), ';')
|
|
436
436
|
)
|
|
437
437
|
),
|
|
438
438
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-kotlin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "Kotlin grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitest/browser-playwright": "5.0.5",
|
|
50
50
|
"@willbooster/oxlint-config": "1.4.9",
|
|
51
51
|
"@willbooster/wb": "22.29.3",
|
|
52
|
-
"@willbooster/web-tree-sitter": "
|
|
52
|
+
"@willbooster/web-tree-sitter": "15.0.0",
|
|
53
53
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
54
54
|
"lefthook": "2.2.2",
|
|
55
55
|
"oxlint": "1.88.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"wrangler": "4.151.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@willbooster/web-tree-sitter": "^
|
|
64
|
+
"@willbooster/web-tree-sitter": "^15.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-kotlin.wasm
CHANGED
|
Binary file
|