This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
/x in patterns now includes all \p{PatWS}
authorKarl Williamson <khw@cpan.org>
Sun, 27 Apr 2014 16:26:58 +0000 (10:26 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 30 May 2014 16:24:27 +0000 (10:24 -0600)
commit8373491aaf51cff82a66edde8d9909cbb51f03e9
tree6bd73f80b478f019e49c8c4d831e5ae3869f7d53
parentdf758df2cf990debef5a719b684d8f2689a0bdcb
/x in patterns now includes all \p{PatWS}

This brings Perl regular expressions more into conformance with Unicode.
/x now accepts 5 additional characters as white space.  Use of these
characters as literals under /x has been deprecated since 5.18, so now
we are free to change what they mean.

This commit eliminates the static function that processes the old
whitespace definition (and a generated macro that was used only for
this), using the already existing one for the new definition.  It
refactors slightly the static function that skips comments to mesh
better with the needs of its callers, and calls it in one place where
before the code was essentially duplicated.

p5p discussion starting in
http://nntp.perl.org/group/perl.perl5.porters/214726 convinced me that
the (?[ ]) comments should be terminated the same way as regular /x
comments, and this was also done in this commit.  No prior notice is
necessary as this is an experimental feature.
embed.fnc
embed.h
pod/perldelta.pod
pod/perldiag.pod
pod/perlre.pod
proto.h
regcharclass.h
regcomp.c
regen/regcharclass.pl
t/re/pat.t
t/re/reg_mesg.t