Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't translate ${0} to ${-1}, GlitchMr++
  • Loading branch information
TimToady committed Sep 10, 2012
1 parent 942bb1c commit cfe8d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STD.pm6
Expand Up @@ -2354,7 +2354,7 @@ grammar P6 is STD {
my $sigil = $<sigil>.Str;
my $text = $<text>.Str;
my $bad = $sigil ~ '{' ~ $text ~ '}';
$text = $text - 1 if $text ~~ /^\d+$/;
$text = $text - 1 if $text ~~ /^\d+$/ and $text > 0;
if $text !~~ /^(\w|\:)+$/ {
return () if $*QSIGIL;
.obs($bad, $sigil ~ '(' ~ $text ~ ')');
Expand Down

0 comments on commit cfe8d43

Please sign in to comment.