From: K.Kosako Date: Thu, 8 Mar 2018 01:30:29 +0000 (+0900) Subject: change direction specifier symbol character from [+-] to [X<>] for callouts of contents X-Git-Tag: v6.8.0~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bfdbc4307bc7c2c72b97e9f58f176a9f630d9349;p=onig change direction specifier symbol character from [+-] to [X<>] for callouts of contents --- diff --git a/src/regparse.c b/src/regparse.c index 5f5c8f7..c981069 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -6564,16 +6564,21 @@ parse_callout_of_contents(Node** np, int cterm, UChar** src, UChar* end, ScanEnv tag_start = tag_end = 0; } - if (c == '+') { + if (c == 'X') { in |= ONIG_CALLOUT_IN_RETRACTION; if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; PFETCH_S(c); } - else if (c == '-') { + else if (c == '<') { in = ONIG_CALLOUT_IN_RETRACTION; if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; PFETCH_S(c); } + else if (c == '>') { /* no needs (default) */ + //in = ONIG_CALLOUT_IN_PROGRESS; + if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; + PFETCH_S(c); + } if (c != cterm) return ONIGERR_INVALID_CALLOUT_PATTERN;