Skip to content

Commit

Permalink
Fix case being ignored on multi-character backslash escapes; we now p…
Browse files Browse the repository at this point in the history
…ass S05-mass/named-chars.t
  • Loading branch information
sorear committed Dec 23, 2011
1 parent 794a876 commit 59989fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/niecza
Expand Up @@ -26,6 +26,20 @@ use STD;
# } # }


augment class NieczaActions { augment class NieczaActions {
method post_backslash($/) {
# XXX confine $/ resetting
sub _isupper { $_ ~~ /^<[ A .. Z ]>/ }
sub _islower { $_ ~~ /^<[ a .. z ]>/ }
if $/.ast.^isa(CClass) {
make self.cclass_cc($/.ast);
}
if _isupper($/) && _islower($<sym>) {
if $/.ast.^isa(Str) {
make self.string_cc($/.ast);
}
make self.negate_cc($/.ast);
}
}
} }


# remove run_dispatch # remove run_dispatch
Expand Down
1 change: 1 addition & 0 deletions t/spectest.data
Expand Up @@ -212,6 +212,7 @@ S05-grammar/methods.t
S05-grammar/protoregex.t S05-grammar/protoregex.t
S05-grammar/signatures.t S05-grammar/signatures.t
S05-interpolation/lexicals.t S05-interpolation/lexicals.t
S05-mass/named-chars.t
S05-mass/recursive.t S05-mass/recursive.t
S05-mass/rx.t S05-mass/rx.t
S05-mass/stdrules.t S05-mass/stdrules.t
Expand Down

0 comments on commit 59989fe

Please sign in to comment.