From bfdbc4307bc7c2c72b97e9f58f176a9f630d9349 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Thu, 8 Mar 2018 10:30:29 +0900 Subject: [PATCH] change direction specifier symbol character from [+-] to [X<>] for callouts of contents --- src/regparse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; -- 2.40.0