Skip to content

Commit

Permalink
fix: allow do {statement} in when statements
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Sep 24, 2024
1 parent d37b8f2 commit 3fee796
Show file tree
Hide file tree
Showing 5 changed files with 280,520 additions and 284,404 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ module.exports = grammar({
when_statement: $ => prec.right(seq(
'when',
$.expression,
$.block,
choice($.block, seq('do', $.statement)),
repeat($.else_when_clause),
optional($.else_clause),
)),
Expand Down
22 changes: 20 additions & 2 deletions src/grammar.json

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

9 changes: 5 additions & 4 deletions 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 3fee796

Please sign in to comment.