Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix the prefix for nqpvar, so we parse /a$s/ correctly (tadzik++ for …
…discovering the issue).
  • Loading branch information
jnthn committed May 26, 2012
1 parent 594b59d commit 0063bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NQP/Grammar.pm
Expand Up @@ -750,7 +750,7 @@ grammar NQP::Regex is QRegex::P6Regex::Grammar {
}

token metachar:sym<nqpvar> {
<?[$@]> <?before .\w> <var=.LANG('MAIN', 'variable')>
<?before <[$@&]> [\W\w | \w]> <var=.LANG('MAIN', 'variable')>
}

token assertion:sym<{ }> {
Expand Down

0 comments on commit 0063bcd

Please sign in to comment.