diff options
author | Karl Williamson <khw@cpan.org> | 2014-04-27 10:26:58 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2014-05-30 10:24:27 -0600 |
commit | 8373491aaf51cff82a66edde8d9909cbb51f03e9 (patch) | |
tree | 6bd73f80b478f019e49c8c4d831e5ae3869f7d53 /regen | |
parent | df758df2cf990debef5a719b684d8f2689a0bdcb (diff) | |
download | perl-8373491aaf51cff82a66edde8d9909cbb51f03e9.tar.gz |
/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.
Diffstat (limited to 'regen')
-rwxr-xr-x | regen/regcharclass.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl index 187023aa67..b837af4931 100755 --- a/regen/regcharclass.pl +++ b/regen/regcharclass.pl @@ -1652,5 +1652,5 @@ PROBLEMATIC_LOCALE_FOLDEDS_START : The first folded character of folds which are \p{_Perl_Problematic_Locale_Foldeds_Start} PATWS: pattern white space -=> generic generic_non_low cp : safe +=> generic cp : safe \p{PatWS} |