Skip to content

Commit

Permalink
Add missing setting of ignorecase flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 7, 2011
1 parent 987cd89 commit 73e0060
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -89,9 +89,14 @@ class QRegex::P6Regex::Actions is HLL::Actions {
}

method atom($/) {
make $<metachar>
?? $<metachar>.ast
!! QAST::Regex.new( ~$/, :rxtype<literal>, :node($/));
if $<metachar> {
make $<metachar>.ast;
}
else {
my $qast := QAST::Regex.new( ~$/, :rxtype<literal>, :node($/));
$qast.subtype('ignorecase') if %*RX<i>;
make $qast;
}
}

method quantifier:sym<*>($/) {
Expand Down

0 comments on commit 73e0060

Please sign in to comment.