From: K.Kosako Date: Thu, 8 Mar 2018 03:28:45 +0000 (+0900) Subject: change argument char from +- to X<> for (*MON{}) X-Git-Tag: v6.8.0~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18ac3e75cc30c2ae158a3b2b654b5d34bf1ac69c;p=onig change argument char from +- to X<> for (*MON{}) --- diff --git a/src/regexec.c b/src/regexec.c index ac60315..d484500 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -5567,11 +5567,11 @@ onig_builtin_monitor(OnigCalloutArgs* args, void* user_data) in = onig_get_callout_in_by_callout_args(args); if (in == ONIG_CALLOUT_IN_PROGRESS) { - if (val.c == '-') + if (val.c == '<') return ONIG_CALLOUT_SUCCESS; } else { - if (val.c != '+' && val.c != '-') + if (val.c != 'X' && val.c != '<') return ONIG_CALLOUT_SUCCESS; } @@ -5622,7 +5622,7 @@ onig_setup_builtin_monitors_by_ascii_encoded_name(void) name = "MON"; ts[0] = ONIG_TYPE_CHAR; - opts[0].c = ' '; + opts[0].c = '>'; BC_B_O(name, monitor, 1, ts, 1, opts); return ONIG_NORMAL;