Skip to content

Commit

Permalink
statement_list: Change order of choice to reduce confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Oct 1, 2024
1 parent abd8f92 commit 91bbeea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = grammar({

_statement_list: $ =>
repeat1(
choice(seq($.statement, choice($._line_insensitive_statement, ";", "\n")), $._line_insensitive_statement),
choice(seq($.statement, choice(";", "\n", $._line_insensitive_statement)), $._line_insensitive_statement),
),

comment: _ => token(seq("#", /[^#].*/)),
Expand Down
8 changes: 4 additions & 4 deletions src/grammar.json

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

0 comments on commit 91bbeea

Please sign in to comment.