Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 6f9328ca348b95ff60b2672e0c425242e6e87419
https://github.com/Perl/perl5/commit/6f9328ca348b95ff60b2672e0c425242e6e87419
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.