@willbooster/tree-sitter-javascript 15.0.0 → 15.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
@@ -1726,7 +1726,11 @@ module.exports = grammar({
1726
1726
  pair: ($) => seq(field('key', $._property_name), ':', field('value', $.expression)),
1727
1727
 
1728
1728
  pair_pattern: ($) =>
1729
- seq(field('key', $._property_name), ':', field('value', choice($.pattern, $.assignment_pattern))),
1729
+ seq(
1730
+ field('key', $._property_name),
1731
+ ':',
1732
+ field('value', choice(alias($._non_rest_pattern, $.pattern), $.assignment_pattern))
1733
+ ),
1730
1734
 
1731
1735
  _field_name: ($) =>
1732
1736
  reserved(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "15.0.0",
3
+ "version": "15.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": "15.0.0",
51
+ "version": "15.0.1",
52
52
  "license": "MIT",
53
53
  "description": "JavaScript grammar for tree-sitter",
54
54
  "authors": [