Branch: refs/heads/yves/fixup_regexp_intflags
Home: https://github.com/Perl/perl5
Commit: 31be12b87b96554a61a3f926961827e85b84bb8e
https://github.com/Perl/perl5/commit/31be12b87b96554a61a3f926961827e85b84bb8e
Author: Yves Orton <[email protected]>
Date: 2023-01-09 (Mon, 09 Jan 2023)
Changed paths:
M MANIFEST
M ext/re/re.pm
A ext/re/t/intflags.pl
A ext/re/t/intflags.t
M ext/re/t/lexical_debug.t
M regen/regcomp.pl
M regnodes.h
Log Message:
-----------
regcomp.pl - fixup intflags debug data to handle gaps properly
We were not handling gaps in the sequence properly, and effectively
showing the wrong flag names or missing the last flag. Now we die if there
are any collisions or if any of the PREGf defines set more than one bit.
This also adds some crude tests to validate that intflags serialization is
working properly.
Note, extflags handles more complex scenarios and seems to handle this
gracefully already, hence the reason I haven't touched it as well.
This also tweaks a comment in lexical_debug.t which part of this was
cribbed from.