Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve error for malformed loop statement.
Brings us in line with STD.
  • Loading branch information
jnthn committed Jul 15, 2015
1 parent 0d660bb commit 270d179
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Perl6/Grammar.nqp
Expand Up @@ -1376,9 +1376,10 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
<sym><.kok>
:s''
[ '('
<e1=.EXPR>? ';'
<e2=.EXPR>? ';'
<e3=.EXPR>?
[
<e1=.EXPR>? ';' <e2=.EXPR>? ';' <e3=.EXPR>?
|| <.malformed('loop spec')>
]
')' ]?
<block>
}
Expand Down

0 comments on commit 270d179

Please sign in to comment.