Skip to content

Commit ddf6d6b

Browse files
committed
eat_terminator needs sequential alternation (STD has it that way too; vaguely reassuring that we also need it now we have LTM for alternations).
1 parent c774ec8 commit ddf6d6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NQP/Grammar.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ grammar NQP::Grammar is HLL::Grammar {
139139
}
140140

141141
token eat_terminator {
142-
| ';'
143-
| <?MARKED('endstmt')>
144-
| <?terminator>
145-
| $
142+
|| ';'
143+
|| <?MARKED('endstmt')>
144+
|| <?terminator>
145+
|| $
146146
}
147147

148148
token xblock {

0 commit comments

Comments
 (0)