mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
[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:
parent
81c1334904
commit
76b1d4a481
Notes:
git
2026-01-12 12:35:29 +00:00
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user