Skip to content

Commit 80a8a7d

Browse files
committed
feat: support using
1 parent ee9b195 commit 80a8a7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

common/define-grammar.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,13 @@ module.exports = function defineGrammar(dialect) {
181181
field('arguments', optional($.arguments))
182182
)),
183183

184+
assignment_expression: $ => prec.right('assign', seq(
185+
optional('using'),
186+
field('left', choice($.parenthesized_expression, $._lhs_expression)),
187+
'=',
188+
field('right', $.expression),
189+
)),
190+
184191
_augmented_assignment_lhs: ($, previous) => choice(previous, $.non_null_expression),
185192

186193
_lhs_expression: ($, previous) => choice(previous, $.non_null_expression),

0 commit comments

Comments
 (0)