Permalink
Browse files

Fix statement termination with 'loop' statement control -- noticed

by ash_++.
  • Loading branch information...
pmichaud committed Jan 26, 2010
1 parent 7daa82d commit 78e3b4868e2b67cb7b245a6b43a422e0cc5d6113
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/Perl6/Grammar.pm
View
@@ -353,13 +353,13 @@ token statement_control:sym<for> {
token statement_control:sym<loop> {
<sym>
[ <?before '(' | '{' > <.panic: "Whitespace required after 'loop'"> ]?
<.ws>
[ '(' :s
<e1=.EXPR>? ';'
<e2=.EXPR>? ';'
<e3=.EXPR>?
')' ]?
[ <?[({]> <.panic: "Whitespace required after 'loop'"> ]?
:s
[ '('
<e1=.EXPR>? ';'
<e2=.EXPR>? ';'
<e3=.EXPR>?
')' ]?
<block>
}

0 comments on commit 78e3b48

Please sign in to comment.