@willbooster/tree-sitter-kotlin 22.0.3 → 22.0.4

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/grammar.js CHANGED
@@ -155,6 +155,7 @@ module.exports = grammar({
155
155
  sym('_return_value_position'),
156
156
  // valid nowhere, so that an unterminated block comment, which runs to the end of the input, is an error
157
157
  sym('_unterminated_block_comment'),
158
+ sym('_initial_accessor_separator'),
158
159
  sym('_getter_separator'),
159
160
  sym('_setter_separator'),
160
161
  sym('_accessor_parameters_position'),
@@ -283,13 +284,15 @@ module.exports = grammar({
283
284
  choice($.variable_declaration, $.multi_variable_declaration),
284
285
  optional($.type_constraints),
285
286
  optional(choice(seq('=', $.expression), $.property_delegate)),
286
- optional(';'),
287
287
  optional(
288
- choice(
289
- seq($.getter, optional($.setter)),
290
- seq($.setter, optional($.getter)),
291
- seq(alias($._expression_getter, $.getter), sym('_setter_separator'), $.setter),
292
- seq(alias($._expression_setter, $.setter), sym('_getter_separator'), $.getter)
288
+ seq(
289
+ optional(sym('_initial_accessor_separator')),
290
+ choice(
291
+ seq($.getter, optional($.setter)),
292
+ seq($.setter, optional($.getter)),
293
+ seq(alias($._expression_getter, $.getter), sym('_setter_separator'), $.setter),
294
+ seq(alias($._expression_setter, $.setter), sym('_getter_separator'), $.getter)
295
+ )
293
296
  )
294
297
  )
295
298
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-kotlin",
3
- "version": "22.0.3",
3
+ "version": "22.0.4",
4
4
  "description": "Kotlin grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "kotlin",
@@ -47,8 +47,8 @@
47
47
  "@types/bun": "1.4.4",
48
48
  "@vitest/browser-playwright": "5.1.0",
49
49
  "@willbooster/oxlint-config": "1.4.9",
50
- "@willbooster/wb": "23.4.1",
51
- "@willbooster/web-tree-sitter": "23.0.0",
50
+ "@willbooster/wb": "23.4.3",
51
+ "@willbooster/web-tree-sitter": "23.0.1",
52
52
  "conventional-changelog-conventionalcommits": "10.4.1",
53
53
  "lefthook": "2.2.2",
54
54
  "oxlint": "1.93.0",
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "22.0.3",
16
+ "version": "22.0.4",
17
17
  "license": "MIT",
18
18
  "description": "Kotlin grammar for tree-sitter",
19
19
  "authors": [