This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Warn on [:^posix:] not being in []
authorKarl Williamson <khw@cpan.org>
Thu, 5 Feb 2015 20:07:38 +0000 (13:07 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 5 Feb 2015 20:54:23 +0000 (13:54 -0700)
commit7dbd4c448e073ab79489ffeb25479e30e283d84d
tree0b7822356d38ff4dd2e93c5501e2c956694e8cd2
parentc9a74c77cc7250708801cd921a86741bdcbda6cd
regcomp.c: Warn on [:^posix:] not being in []

A POSIX character class is has to be in a bracketed character class.  A
warning is issued when something appearing to be one is found outside.
Until this commit the warning wasn't raised for negated classes.
pod/perldelta.pod
regcomp.c
t/re/reg_mesg.t