Skip to content

Commit

Permalink
Add support for export let
Browse files Browse the repository at this point in the history
  • Loading branch information
irh committed Jun 3, 2024
1 parent 2ff158a commit eb8d866
Show file tree
Hide file tree
Showing 5 changed files with 199,232 additions and 212,717 deletions.
22 changes: 1 addition & 21 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,27 +344,7 @@ module.exports = grammar({

export: $ => prec.right(seq(
'export',
choice(
seq(
choice(
$.identifier,
$.meta,
),
optional(
seq(
repeat($._indented_line),
'=',
repeat($._indented_line),
$._expression,
),
),
),
seq(
repeat($._indented_line),
$.map,
),
$.map_block,
),
$._expressions,
)),

number: _ => token(
Expand Down
78 changes: 2 additions & 76 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb8d866

Please sign in to comment.