Skip to content

Commit

Permalink
Fix arg passing of <foo(...)> where foo is lexical
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Mar 14, 2014
1 parent 3a30ddb commit 20193f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -7118,7 +7118,7 @@ class Perl6::RegexActions is QRegex::P6Regex::Actions does STDActions {
} elsif $*W.regex_in_scope('&' ~ $name) {
$qast := QAST::Regex.new(:rxtype<subrule>, :subtype<capture>,
:node($/), QAST::Node.new(
QAST::SVal.new( :value('INTERPOLATE') ),
QAST::SVal.new( :value('INDRULE') ),
QAST::Var.new( :name('&' ~ $name), :scope('lexical') ) ),
:name($name) );
}
Expand Down
4 changes: 4 additions & 0 deletions src/core/Cursor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ my class Cursor does NQPCursorRole {
$lang_cursor."$name"();
}

method INDRULE($rule, |c) {
$rule(self, |c)
}

method RECURSE() {
nqp::getlexdyn('$?REGEX')(self)
}
Expand Down

0 comments on commit 20193f6

Please sign in to comment.