From: K.Kosako Date: Thu, 24 Aug 2017 02:13:40 +0000 (+0900) Subject: rename Absent-clear to Range-clear X-Git-Tag: v6.6.0~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca017be8578f3de0026addfe989bc670768c1655;p=onig rename Absent-clear to Range-clear --- diff --git a/HISTORY b/HISTORY index 4daedb6..ca51817 100644 --- a/HISTORY +++ b/HISTORY @@ -2,6 +2,7 @@ History 2017/08/28: Version 6.6.0 +2017/08/24: rename Absent clear to Range clear 2017/08/21: [new] Extended Grapheme Cluster \X and boundary \y, \Y 2017/08/17: fix: invalid index(ctype) value assigned to Unicode Block properties 2017/08/16: --enable-crnl-as-line-terminator to be deprecated diff --git a/README.md b/README.md index 5f63aa5..33e07ee 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ New feature of version 6.6.0 -------------------------- * NEW: ASCII only mode options for character type/property (?WDSP) -* NEW: \y, \Y Extended Grapheme Cluster boundary (*original) -* NEW: \X Extended Grapheme Cluster -* Absent-clear operator restores previous range in backtrack. +* NEW: Extended Grapheme Cluster boundary \y, \Y (*original) +* NEW: Extended Grapheme Cluster \X +* Range-clear (renamed from Absent-clear) operator restores previous range in backtrack. New feature of version 6.5.0 diff --git a/doc/RE b/doc/RE index 92b4728..e8ebe37 100644 --- a/doc/RE +++ b/doc/RE @@ -1,4 +1,4 @@ -Oniguruma Regular Expressions Version 6.6.0 2017/08/21 +Oniguruma Regular Expressions Version 6.6.0 2017/08/24 syntax: ONIG_SYNTAX_RUBY (default) @@ -281,7 +281,7 @@ syntax: ONIG_SYNTAX_RUBY (default) at the point that does not include the string match whth . - (?~|) Absent clear + (?~|) Range clear Clear the effects caused by Absent stoppers. * Nested Absent functions are not supported and the behavior diff --git a/src/regparse.c b/src/regparse.c index 2edf250..520137a 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -1780,7 +1780,7 @@ make_absent_tail(Node** node1, Node** node2, int pre_save_right_id, } static int -make_absent_clear(Node** node, ScanEnv* env) +make_range_clear(Node** node, ScanEnv* env) { int r; int id; @@ -5485,9 +5485,9 @@ parse_enclosure(Node** np, OnigToken* tok, int term, UChar** src, UChar* end, if (PEND) return ONIGERR_END_PATTERN_IN_GROUP; head_bar = 1; - if (PPEEK_IS(')')) { // (?~|) : absent clear + if (PPEEK_IS(')')) { // (?~|) : range clear PINC; - r = make_absent_clear(np, env); + r = make_range_clear(np, env); if (r != 0) return r; goto end; }