Skip to content

Commit

Permalink
Fix error reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 27, 2012
1 parent 289f960 commit f86d5a6
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 @@ -97,7 +97,7 @@ role STD {
<babble($l)>
{ my $B := $<babble><B>.ast; $lang := $B[0]; $start := $B[1]; $stop := $B[2]; }

$start <nibble($lang)> [ $stop || <.panic: "Couldn't find terminator $stop"> ]
$start <nibble($lang)> [ $stop || { $/.CURSOR.panic("Couldn't find terminator $stop") } ]

# Figure out this when we add heredocs...
#{ $lang<_herelang> and $¢.queue_heredoc($<nibble><nibbles>[0]<TEXT>, $lang<_herelang>) }
Expand Down

0 comments on commit f86d5a6

Please sign in to comment.