]> granicus.if.org Git - onig/commitdiff
update doc/RE for Absent clear
authorK.Kosako <kkosako0@gmail.com>
Sun, 30 Jul 2017 08:40:04 +0000 (17:40 +0900)
committerK.Kosako <kkosako0@gmail.com>
Sun, 30 Jul 2017 08:40:04 +0000 (17:40 +0900)
doc/RE
doc/RE.ja

diff --git a/doc/RE b/doc/RE
index 2f47fbc901163502af3e0e31facefe2ccfe1ae0f..16cc88863ee045cca348e6bd06c89037b68f7149 100644 (file)
--- a/doc/RE
+++ b/doc/RE
@@ -240,7 +240,7 @@ syntax: ONIG_SYNTAX_RUBY (default)
 
                      Assigning the same name to two or more subexps is allowed.
 
-  <absent functions>
+  <Absent functions>
 
   (?~absent)         Absent repeater    (* proposed by Tanaka Akira)
                      This works like .* (more precisely \O*), but it is
@@ -260,7 +260,11 @@ syntax: ONIG_SYNTAX_RUBY (default)
                      at the point that does not include the string match whth
                      absent.
 
-     * Nested absent functions are not supported and the behavior
+  (?~|)              Absent clear
+                     Clear the effects caused by Absent cutters.
+                     (* This operation is not cancelled by backtrack.)
+
+     * Nested Absent functions are not supported and the behavior
        is undefined.
 
 
@@ -273,7 +277,7 @@ syntax: ONIG_SYNTAX_RUBY (default)
                else_exp can be omitted.
                Then it works as a backreference validity checker.
 
-  [ backreference validity checker ]   (* original function)
+  [ backreference validity checker ]   (* original)
 
     (?(n)), (?(-n)), (?(+n)), (?(n+level)) ...
     (?(<n>)), (?('-n')), (?(<+n>)) ...
index 41baf6fbd9c0ebf96040f0d0459ab28f002e525c..c05468df0079312ce49598dc90a3fd3bad0073ab 100644 (file)
--- a/doc/RE.ja
+++ b/doc/RE.ja
                     この演算子を通過した後は、対象文字列の適合範囲の最後が
                     不在式に適合する文字列を含まない範囲に制限される。
 
+  (?~|)             不在消去
+                    不在切断の効果を消して、初期状態にする。
+                    (* この演算子の効果は後退再試行で無効化されない)
+
      * 不在機能の入れ子はサポートしておらず、挙動は不定とする。