diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-01-22 13:34:54 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-01-23 19:35:34 -0700 |
commit | ff56e4f1f932959354fde1f616e4834c066c0181 (patch) | |
tree | c7234a973cceaa8eabb7edc74507ea43f728df84 /regcomp.c | |
parent | 0d6106aa7a7bf59a333387bc6170353dcd78d3f3 (diff) | |
download | perl-ff56e4f1f932959354fde1f616e4834c066c0181.tar.gz |
Add deprecation warning for literal PATWS under /x
This is explained in the perldelta changes in this commit. We plan to
migrate to Unicode's definition of white-space to ignore under /x. That
means we should raise a deprecation warning in the meantime if anyone
currently uses these characters in such a way as to have the meaning
changed when the migration is completed.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -10791,6 +10791,15 @@ tryagain: break; default: /* A literal character */ + if (! SIZE_ONLY + && RExC_flags & RXf_PMf_EXTENDED + && ckWARN(WARN_DEPRECATED) + && is_PATWS_non_low(p, UTF)) + { + vWARN_dep(p + ((UTF) ? UTF8SKIP(p) : 1), + "Escape literal pattern white space under /x"); + } + normal_default: if (UTF8_IS_START(*p) && UTF) { STRLEN numlen; |