diff options
author | David Mitchell <davem@iabyn.com> | 2011-01-16 14:16:20 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-01-16 14:16:20 +0000 |
commit | d658a8a81c4f311bef688fd51df924a424429f14 (patch) | |
tree | c90aa43119f05a7732d7f1fac94f8c0eae753002 /regcomp.h | |
parent | 95a517db36c4d56cf2a5e6103e3235de4c1c38f8 (diff) | |
download | perl-d658a8a81c4f311bef688fd51df924a424429f14.tar.gz |
restrict \p{IsUserDefined} to In\w+ and In\w+
In L<perlunicode/"User-Defined Character Properties">, it says you can
create custom properties by defining subroutines whose names begin with
"In" or "Is". However, perl doesn't actually enforce that naming
restriction, so \p{foo::bar} will call foo::Bar() if it exists.
This commit finally enforces this convention. Note that this broke a
number of existing tests for properties, since they didn't always use an
Is/In prefix.
Diffstat (limited to 'regcomp.h')
0 files changed, 0 insertions, 0 deletions