Branch: refs/heads/yves/fixup_regexp_intflags
Home: https://github.com/Perl/perl5
Commit: a9840f655c89ca6a445fa72a4c366e8040f6a1f8
https://github.com/Perl/perl5/commit/a9840f655c89ca6a445fa72a4c366e8040f6a1f8
Author: Yves Orton <[email protected]>
Date: 2023-01-09 (Mon, 09 Jan 2023)
Changed paths:
M MANIFEST
A ext/re/t/intflags.pl
A ext/re/t/intflags.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.