Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually declare that $REGEXNAME is our scoped rather than never actu…
…ally declaring it anywhere in NQP.
  • Loading branch information
jnthn committed Apr 20, 2011
1 parent 30a5cbb commit a89b31b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Regex/P6Regex/Actions.pm
Expand Up @@ -2,6 +2,7 @@ class Regex::P6Regex::Actions is HLL::Actions {

## this will eventually be handled using contextuals
our @MODIFIERS;
our $REGEXNAME;

INIT {
@MODIFIERS := Q:PIR {
Expand Down Expand Up @@ -405,8 +406,9 @@ class Regex::P6Regex::Actions is HLL::Actions {
self.subrule_alias($past, $name);
}
elsif $name eq 'sym' {
my $rxname := $REGEXNAME;
my $regexsym := Q:PIR {
$P0 = get_global '$REGEXNAME'
$P0 = find_lex '$rxname'
$S0 = $P0
$I0 = index $S0, ':sym<'
add $I0, 5
Expand Down

0 comments on commit a89b31b

Please sign in to comment.