@willbooster/tree-sitter-javascript 1.0.26 → 1.0.28

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
@@ -793,7 +793,10 @@ module.exports = grammar({
793
793
  seq(
794
794
  optional('async'),
795
795
  choice(
796
- field('parameter', choice(alias($._reserved_identifier, $.identifier), $.identifier)),
796
+ field(
797
+ 'parameter',
798
+ choice(alias($._reserved_identifier, $.identifier), alias($.undefined, $.identifier), $.identifier)
799
+ ),
797
800
  $._call_signature
798
801
  ),
799
802
  '=>',
@@ -899,7 +902,7 @@ module.exports = grammar({
899
902
  $.member_expression,
900
903
  $.subscript_expression,
901
904
  alias($._reserved_identifier, $.identifier),
902
- $.identifier,
905
+ $._identifier,
903
906
  $.parenthesized_expression
904
907
  ),
905
908
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -497,6 +497,10 @@
497
497
  {
498
498
  "type": "subscript_expression",
499
499
  "named": true
500
+ },
501
+ {
502
+ "type": "undefined",
503
+ "named": true
500
504
  }
501
505
  ]
502
506
  },
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "1.0.26",
27
+ "version": "1.0.28",
28
28
  "license": "MIT",
29
29
  "description": "JavaScript grammar for tree-sitter",
30
30
  "authors": [