Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
aligned error message with STD's
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed May 30, 2010
1 parent d1d1d31 commit 45a6612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Regex/P6Regex/Actions.pm
Expand Up @@ -76,7 +76,7 @@ method termish($/) {
method quantified_atom($/) {
my $past := $<atom>.ast;
if $<quantifier> {
if !$past { $/.CURSOR.panic("Can't quantify zero-width atom"); }
if !$past { $/.CURSOR.panic("Quantifier follows nothing"); }
my $qast := $<quantifier>[0].ast;
$qast.unshift($past);
$past := $qast;
Expand Down

0 comments on commit 45a6612

Please sign in to comment.