Skip to content
Browse files

revert to !LITERAL for quotes in regex

The interpolation is already handled by the quote language, we dont need
to interpolate twice. This might fix a slowdown masak++ discovered.
  • Loading branch information...
1 parent 540c014 commit 2696aab9249fd7cdb83ebaf644c80000cc3a432e @FROGGS FROGGS committed May 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Perl6/Actions.nqp
View
2 src/Perl6/Actions.nqp
@@ -6046,7 +6046,7 @@ class Perl6::RegexActions is QRegex::P6Regex::Actions does STDActions {
}
else {
make QAST::Regex.new( QAST::Node.new(
- QAST::SVal.new( :value('INTERPOLATE') ),
+ QAST::SVal.new( :value('!LITERAL') ),
$quote,
QAST::IVal.new( :value(%*RX<i> ?? 1 !! 0) ) ),
:rxtype<subrule>, :subtype<method>, :node($/));

0 comments on commit 2696aab

Please sign in to comment.
Something went wrong with that request. Please try again.