[k-takata/Onigmo] Disable error message for capture history when not needed

Add `#ifdef USE_CAPTURE_HISTORY`.

https://github.com/k-takata/Onigmo/commit/8217be2c3a
This commit is contained in:
K.Takata 2019-08-02 01:03:11 +09:00 committed by Nobuyoshi Nakada
parent 81c1334904
commit 76b1d4a481
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2026-01-12 12:35:29 +00:00

View File

@ -173,8 +173,10 @@ onig_error_code_to_format(OnigPosition code)
p = "multiplex definition name <%n> call"; break;
case ONIGERR_NEVER_ENDING_RECURSION:
p = "never ending recursion"; break;
#ifdef USE_CAPTURE_HISTORY
case ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY:
p = "group number is too big for capture history"; break;
#endif
case ONIGERR_INVALID_CHAR_PROPERTY_NAME:
p = "invalid character property name {%n}"; break;
case ONIGERR_TOO_MANY_CAPTURE_GROUPS: