diff options
author | Tony Cook <tony@develop-help.com> | 2020-09-14 16:00:28 +1000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2021-01-06 17:40:16 +0000 |
commit | 536520b4a24d012a8aa0690f044f651300258171 (patch) | |
tree | cd3879de39c809692ce490c1c169a2722786f253 /README.tru64 | |
parent | 7925f8dfc09ddebcbfa214fdcd854c52090586f9 (diff) | |
download | perl-536520b4a24d012a8aa0690f044f651300258171.tar.gz |
don't croak when the \K follows the lookaround assertion
this also simplifies the flagging for these assertions, since this
error is now the only thing using in_lookhead and in_lookbehind they
can be combined into a single in_lookaround.
Rather than conditional increment/decrement as we recurse into S_reg
I simply save the value of in_lookaround and restore it before
returning. Some unsuccessful or restart paths don't do the restore,
but they either result in a croak(), or a restart which reinitialises
in_lookaround anyway.
Also added tests to ensure that all the different zero-width assertions
with content trigger the error.
(cherry picked from commit 80f44cf4982e395989f886220e05dd2071bb205a)
Diffstat (limited to 'README.tru64')
0 files changed, 0 insertions, 0 deletions