Skip to content

Commit

Permalink
<arglist> happily parses empty space here, then we could get nasty er…
Browse files Browse the repository at this point in the history
…rors if whitespace fell in the wrong place rather than good errors or the module being loaded. Add a check against it.
  • Loading branch information
jnthn committed Jun 21, 2012
1 parent 4d79923 commit 61f6f14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Perl6/Grammar.pm
Expand Up @@ -764,7 +764,7 @@ grammar Perl6::Grammar is HLL::Grammar {
}
}
[
|| <.spacey> <arglist>
|| <.spacey> <arglist> <?{ $<arglist><EXPR> }>
{
my $arglist := $*W.compile_time_evaluate($/,
$<arglist><EXPR>.ast);
Expand All @@ -775,7 +775,6 @@ grammar Perl6::Grammar is HLL::Grammar {
$*GLOBALish);
do_import($module, ~$longname, $arglist);
$/.CURSOR.import_EXPORTHOW($module);

}
|| {
unless ~$<doc> && !%*COMPILING<%?OPTIONS><doc> {
Expand Down

0 comments on commit 61f6f14

Please sign in to comment.