Skip to content

Commit 1b1ca93

Browse files
committed
fix: give a higher lexical precedence to the * in except*
1 parent a4c106f commit 1b1ca93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ module.exports = grammar({
361361

362362
except_clause: $ => seq(
363363
'except',
364-
optional('*'),
364+
optional(token(prec(1, '*'))),
365365
optional(choice(
366366
seq(
367367
field('value', $.expression),

0 commit comments

Comments
 (0)