Skip to content

Conversation

@carenas
Copy link
Contributor

@carenas carenas commented Oct 17, 2024

First patch is really a fixup for #528 with the second patch being the real meat.

Posted separately so it is easier to see the independent changes, but will squash them otherwise.

When \N{U+hh...} was added it was meant to support all unicode
characters that can be encoded by pcre2test and Perl, but its
use outside what is officially considered valid can be confusing
so print a warning for those cases.
The use of \xhh can be ambiguous when used together with the utf modifier,
so allow for describing code points individually in the pattern using hex,
with the same syntax that is already supported by pcre2test.
@PhilipHazel PhilipHazel merged commit 1e09555 into PCRE2Project:master Oct 17, 2024
15 checks passed
@carenas carenas deleted the hex branch October 17, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants