@willbooster/tree-sitter-kotlin 14.0.0 → 16.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/grammar.js CHANGED
@@ -130,8 +130,6 @@ module.exports = grammar({
130
130
  sym('_primary_constructor_position'),
131
131
  // empty: it ends a delegation expression in a class header before `{` (see `explicit_delegation`)
132
132
  sym('_delegation_end'),
133
- // the `)` that ends a call's arguments (see `value_arguments`)
134
- sym('_arguments_end'),
135
133
  // empty: they tell the scanner when a statement list, the entries of a `when`, or the member list of a class body
136
134
  // opens in braces, and when any closes (see `frames` in the scanner)
137
135
  sym('_open_statements'),
@@ -155,6 +153,8 @@ module.exports = grammar({
155
153
  sym('_import_continue'),
156
154
  // never scanned: it tells the scanner that a value may follow `return` (see `return_expression`)
157
155
  sym('_return_value_position'),
156
+ // valid nowhere, so that an unterminated block comment, which runs to the end of the input, is an error
157
+ sym('_unterminated_block_comment'),
158
158
  ],
159
159
 
160
160
  inline: ($) => [$._statements, $._identifier, $._control_structure_body, $._non_function_type],
@@ -1147,12 +1147,12 @@ function optionalCommaSep1(rule) {
1147
1147
  }
1148
1148
 
1149
1149
  /**
1150
- * Creates the arguments of a call or an annotation, ending them with the scanner's `)` token.
1150
+ * Creates the arguments of a call or an annotation.
1151
1151
  *
1152
1152
  * @param {GrammarSymbols} $
1153
1153
  * @param {RuleOrLiteral} open
1154
1154
  *
1155
1155
  */
1156
1156
  function valueArguments($, open) {
1157
- return seq(open, optionalCommaSep1($.value_argument), alias(sym('_arguments_end'), ')'));
1157
+ return seq(open, optionalCommaSep1($.value_argument), ')');
1158
1158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-kotlin",
3
- "version": "14.0.0",
3
+ "version": "16.0.0",
4
4
  "description": "Kotlin grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "14.0.0",
16
+ "version": "16.0.0",
17
17
  "license": "MIT",
18
18
  "description": "Kotlin grammar for tree-sitter",
19
19
  "authors": [