Skip to content

Commit

Permalink
fix bug expanding <TILDE>
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Nov 5, 2011
1 parent 737bf41 commit f4a422b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Pegex/Compiler.pm
Expand Up @@ -111,9 +111,9 @@ sub combinate_re {
my $regexp = shift;
my $atoms = Pegex::Grammar::Atoms->atoms;
$regexp->{'.rgx'} =~ s!~!<ws>!g;
my $re = $regexp->{'.rgx'};
$re =~ s!~!<ws>!g;
while (1) {
my $re = $regexp->{'.rgx'};
$re =~ s!~!<ws>!g;
$re =~ s[<(\w+)>][
$self->tree->{$1} and
$self->tree->{$1}{'.rgx'}
Expand Down

0 comments on commit f4a422b

Please sign in to comment.