@willbooster/tree-sitter-kotlin 10.0.0 → 11.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 CHANGED
@@ -25,7 +25,7 @@ the trees that error recovery produces may change; such changes are released as
25
25
 
26
26
  The npm package ships `tree-sitter-kotlin.wasm` for
27
27
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
28
- browsers, and Cloudflare Workers. The parser loads only with this runtime, version 15.0.0 or later in the 15.x series: the upstream
28
+ browsers, and Cloudflare Workers. The parser loads only with this runtime, version 15.0.0 or later in the 15.x or 16.x series: the upstream
29
29
  Tree-sitter runtime rejects it.
30
30
 
31
31
  In Node.js and Bun:
@@ -71,10 +71,10 @@ The package also ships the node types in `src/node-types.json`.
71
71
 
72
72
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-kotlin) and on
73
73
  [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
74
- fuzzed with. The parser loads only with this runtime, version 15.0.0 or later in the 15.x series:
74
+ fuzzed with. The parser loads only with this runtime, version 15.0.0 or later in the 15.x or 16.x series:
75
75
 
76
76
  ```sh
77
- cargo add willbooster-tree-sitter@15.0.0 --rename tree-sitter
77
+ cargo add willbooster-tree-sitter@16.0.0 --rename tree-sitter
78
78
  cargo add willbooster-tree-sitter-kotlin --rename tree-sitter-kotlin
79
79
  ```
80
80
 
package/grammar.js CHANGED
@@ -106,9 +106,6 @@ module.exports = grammar({
106
106
  externals: () => [
107
107
  sym('_destructuring_type_start'),
108
108
  sym('_semi'),
109
- sym('_class_member_semi'),
110
- // Unlike properties, these declarations can end before another member on the same line.
111
- sym('_same_line_member_end'),
112
109
  sym('block_comment'),
113
110
  // also lexed by the scanner, since the generated lexer stops at a NUL character
114
111
  sym('line_comment'),
@@ -508,8 +505,7 @@ module.exports = grammar({
508
505
  class_body: ($) =>
509
506
  seq('{', sym('_open_members'), repeat($._class_member_with_separator), '}', sym('_close_braces')),
510
507
 
511
- _class_member_with_separator: ($) =>
512
- seq($.class_member_declaration, optional(sym('_same_line_member_end')), sym('_class_member_semi')),
508
+ _class_member_with_separator: ($) => seq($.class_member_declaration, sym('_semi')),
513
509
 
514
510
  class_member_declaration: ($) =>
515
511
  choice($.declaration, $.companion_object, $.anonymous_initializer, $.secondary_constructor),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-kotlin",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
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": "23.0.2",
52
- "@willbooster/web-tree-sitter": "15.5.4",
52
+ "@willbooster/web-tree-sitter": "16.0.2",
53
53
  "conventional-changelog-conventionalcommits": "10.4.1",
54
54
  "lefthook": "2.2.2",
55
55
  "oxlint": "1.89.0",
@@ -61,7 +61,7 @@
61
61
  "wrangler": "4.152.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@willbooster/web-tree-sitter": "^15.0.0"
64
+ "@willbooster/web-tree-sitter": "^15.0.0 || ^16.0.0"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "10.0.0",
16
+ "version": "11.0.0",
17
17
  "license": "MIT",
18
18
  "description": "Kotlin grammar for tree-sitter",
19
19
  "authors": [