Some GRegex compile errors are not clearly exposed
We've many error values that would need to be added as per new errors in PCRE2.
Specifically in translate_compile_error
, these seems somewhat nice to have to me:
-
PCRE2_ERROR_UNICODE_NOT_SUPPORTED
: -
PCRE2_ERROR_INVALID_SUBPATTERN_NAME
-
PCRE2_ERROR_CLASS_INVALID_RANGE
-
PCRE2_ERROR_PARENTHESES_STACK_CHECK
-
PCRE2_ERROR_CALLOUT_NUMBER_TOO_BIG
-
PCRE2_ERROR_MISSING_CALLOUT_CLOSING
-
PCRE2_ERROR_ESCAPE_INVALID_IN_VERB
-
PCRE2_ERROR_NULL_PATTERN
-
PCRE2_ERROR_BAD_OPTIONS
-
PCRE2_ERROR_PARENTHESES_NEST_TOO_DEEP
-
PCRE2_ERROR_BACKSLASH_O_MISSING_BRACE
-
PCRE2_ERROR_INVALID_OCTAL
-
PCRE2_ERROR_CALLOUT_STRING_TOO_LONG
-
PCRE2_ERROR_MISSING_OCTAL_OR_HEX_DIGITS
-
PCRE2_ERROR_PATTERN_STRING_TOO_LONG
-
PCRE2_ERROR_BAD_LITERAL_OPTIONS
While I think we can just mark as internal errors
these:
PCRE2_ERROR_HEAP_FAILED
PCRE2_ERROR_INTERNAL_PARSED_OVERFLOW
PCRE2_ERROR_UNICODE_DISALLOWED_CODE_POINT
PCRE2_ERROR_NO_SURROGATES_IN_UTF16
PCRE2_ERROR_INTERNAL_BAD_CODE_LOOKBEHINDS
PCRE2_ERROR_UNICODE_PROPERTIES_UNAVAILABLE
PCRE2_ERROR_INTERNAL_STUDY_ERROR
PCRE2_ERROR_UTF_IS_DISABLED
PCRE2_ERROR_UCP_IS_DISABLED
PCRE2_ERROR_INTERNAL_BAD_CODE_AUTO_POSSESS
PCRE2_ERROR_BACKSLASH_C_LIBRARY_DISABLED
PCRE2_ERROR_INTERNAL_BAD_CODE
PCRE2_ERROR_INTERNAL_BAD_CODE_IN_SKIP
PCRE2_ERROR_ZERO_RELATIVE_REFERENCE
PCRE2_ERROR_LOOKBEHIND_TOO_COMPLICATED
PCRE2_ERROR_BACKSLASH_U_CODE_POINT_TOO_BIG
PCRE2_ERROR_VERSION_CONDITION_SYNTAX
PCRE2_ERROR_CALLOUT_NO_STRING_DELIMITER
PCRE2_ERROR_CALLOUT_BAD_STRING_DELIMITER
PCRE2_ERROR_BACKSLASH_C_CALLER_DISABLED
PCRE2_ERROR_QUERY_BARJX_NEST_TOO_DEEP
PCRE2_ERROR_LOOKBEHIND_TOO_LONG
PCRE2_ERROR_PATTERN_TOO_COMPLICATED
Edited by Marco Trevisan