Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Correct action methods for \e and \f sequences in regexes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 2, 2010
1 parent 31b97cc commit 67a8eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Regex/P6Regex/Actions.pm
Expand Up @@ -275,13 +275,13 @@ method backslash:sym<b>($/) {
}

method backslash:sym<e>($/) {
my $past := PAST::Regex.new( "\e", :pasttype('enumcharlist'),
my $past := PAST::Regex.new( "\c[27]", :pasttype('enumcharlist'),
:negate($<sym> eq 'E'), :node($/) );
make $past;
}

method backslash:sym<f>($/) {
my $past := PAST::Regex.new( "\f", :pasttype('enumcharlist'),
my $past := PAST::Regex.new( "\c[12]", :pasttype('enumcharlist'),
:negate($<sym> eq 'F'), :node($/) );
make $past;
}
Expand Down

0 comments on commit 67a8eaf

Please sign in to comment.