Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 2696aab9249fd7cdb83ebaf644c80000cc3a432e 1 parent 540c014
Tobias Leich FROGGS authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/Perl6/Actions.nqp
2  src/Perl6/Actions.nqp
@@ -6046,7 +6046,7 @@ class Perl6::RegexActions is QRegex::P6Regex::Actions does STDActions {
6046 6046 }
6047 6047 else {
6048 6048 make QAST::Regex.new( QAST::Node.new(
6049   - QAST::SVal.new( :value('INTERPOLATE') ),
  6049 + QAST::SVal.new( :value('!LITERAL') ),
6050 6050 $quote,
6051 6051 QAST::IVal.new( :value(%*RX<i> ?? 1 !! 0) ) ),
6052 6052 :rxtype<subrule>, :subtype<method>, :node($/));

0 comments on commit 2696aab

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