This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Add capability for stricter parsing of []
authorKarl Williamson <public@khwilliamson.com>
Thu, 10 Jan 2013 23:06:53 +0000 (16:06 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 11 Jan 2013 18:50:38 +0000 (11:50 -0700)
commit17d13b541f8d0d9dae54e54091cae12f3f56369d
tree3f1ad7ee1871cd642834336ea7ecad0332a68728
parent822592eef0bdbb064d827b46a91e7bb392714f52
regcomp.c: Add capability for stricter parsing of []

This adds the capability, currently unused, of forbidding certain things
in [bracketed] character classes.  Included are things that warn bug
still compile, such as false ranges, [\d-\w], and unrecognized escapes.

Also forbidden are potentially ambiguous cases where \x (without braces)
isn't followed by exactly two hex digits, or \000 where the number of
octal digits isn't precisely three.
regcomp.c
t/porting/diag.t