Skip to content

Commit

Permalink
proper error message for usage of 'do...for'
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Nov 21, 2012
1 parent bf472b0 commit 41a92e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
my $sp := $<EXPR><statement_prefix>;
if $sp && $sp<sym> eq 'do' {
my $s := $<statement_mod_loop>[0]<sym>;
$/.CURSOR.obs("do..." ~ $s, "repeat..." ~ $s);
$/.CURSOR.obs("do..." ~ $s, "repeat...while or repeat...until");
}
}
]?
Expand Down

0 comments on commit 41a92e8

Please sign in to comment.