@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 +3 -4
- package/package.json +1 -1
- package/tree-sitter-javascript.wasm +0 -0
- package/tree-sitter.json +1 -1
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
|
-
|
|
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
|
Binary file
|