@willbooster/tree-sitter-javascript 5.0.1 → 5.0.2

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
@@ -108,6 +108,7 @@ module.exports = grammar({
108
108
  sym('_resource_binding_continuation'),
109
109
  sym('_plain_resource_for_of_context'),
110
110
  sym('_export_default'),
111
+ sym('_export_default_declaration'),
111
112
  sym('_default_declaration_start'),
112
113
  sym('_regex_flags_start'),
113
114
  sym('_argumentless_new_end'),
@@ -238,10 +239,8 @@ module.exports = grammar({
238
239
  'export',
239
240
  choice(
240
241
  field('declaration', $.declaration),
241
- seq(
242
- alias(sym('_export_default'), 'default'),
243
- choice(field('declaration', $.declaration), seq(field('value', $.expression), $._semicolon))
244
- )
242
+ seq(alias(sym('_export_default_declaration'), 'default'), field('declaration', $.declaration)),
243
+ seq(alias(sym('_export_default'), 'default'), field('value', $.expression), $._semicolon)
245
244
  )
246
245
  )
247
246
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "5.0.1",
27
+ "version": "5.0.2",
28
28
  "license": "MIT",
29
29
  "description": "JavaScript grammar for tree-sitter",
30
30
  "authors": [