Skip to content

Commit a4c106f

Browse files
committed
feat: allow multiple exception expressions without parenthesis
1 parent 29e3bc2 commit a4c106f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

grammar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,12 @@ module.exports = grammar({
362362
except_clause: $ => seq(
363363
'except',
364364
optional('*'),
365-
optional(seq(
366-
field('value', $.expression),
367-
optional(seq(
368-
choice('as', ','),
369-
field('alias', $.expression),
370-
)),
365+
optional(choice(
366+
seq(
367+
field('value', $.expression),
368+
optional(seq('as', field('alias', $.expression))),
369+
),
370+
commaSep1(field('value', $.expression)),
371371
)),
372372
':',
373373
$._suite,

0 commit comments

Comments
 (0)