@willbooster/tree-sitter-javascript 14.0.0 → 14.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/grammar.js CHANGED
@@ -220,11 +220,6 @@ module.exports = grammar({
220
220
  [$.for_in_clause, $._primary_atom],
221
221
  [$._primary_atom, $.rest_pattern],
222
222
  [$._primary_atom, $.pattern],
223
- [$.arrow_function, $._primary_atom, $._property_name],
224
- [$._primary_atom, $.method_definition],
225
- [$._primary_atom, $._property_name],
226
- [$._primary_atom, $.await_expression, $._property_name],
227
- [$.object, $.object_pattern, $._primary_atom],
228
223
  [$.arrow_function, $._primary_atom],
229
224
  [$._primary_atom, $.await_expression],
230
225
  [$.call_expression, $._constructor_import],
@@ -236,8 +231,6 @@ module.exports = grammar({
236
231
  [$.array, $.array_pattern],
237
232
  [$.object, $.object_pattern],
238
233
  [$.assignment_expression, $.pattern],
239
- [$.assignment_expression, $.object_assignment_pattern],
240
- [$.computed_property_name, $.array],
241
234
  ],
242
235
 
243
236
  word: ($) => $.identifier,
@@ -449,7 +442,7 @@ module.exports = grammar({
449
442
  optional($._initializer)
450
443
  ),
451
444
 
452
- statement_block: ($) => prec.right(seq('{', repeat($._statement), '}')),
445
+ statement_block: ($) => prec.right(seq(token(prec(1, '{')), repeat($._statement), '}')),
453
446
 
454
447
  else_clause: ($) => seq('else', $._single_statement),
455
448
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "14.0.0",
3
+ "version": "14.0.1",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -48,7 +48,7 @@
48
48
  }
49
49
  ],
50
50
  "metadata": {
51
- "version": "14.0.0",
51
+ "version": "14.0.1",
52
52
  "license": "MIT",
53
53
  "description": "JavaScript grammar for tree-sitter",
54
54
  "authors": [