From d1a041931e7b70e30c5de930eea3bd154f70c00c Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Thu, 8 Mar 2018 13:26:03 +0900 Subject: [PATCH] update doc --- README.md | 2 +- doc/RE | 19 +++++++++++-------- doc/RE.ja | 14 ++++++++------ 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 593a0c1..9ad076a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ New feature of version 6.8.0 * Retry-limit-in-match function enabled by default * NEW: configure option --enable-posix-api=no (* enabled by default) * NEW API: onig_search_with_param(), onig_match_with_param() -* NEW: Callouts of contents (?{..contents..}\[+-]) (?{{....}}) +* NEW: Callouts of contents (?{..contents..}\[X<>]) (?{{....}}) * NEW: Callouts of name (*name) (*name\[tag]{args...}) * NEW: Builtin callout functions (*FAIL) (*ERROR{n}) (*COUNT) (*MAX{n}) etc.. diff --git a/doc/RE b/doc/RE index 97766f2..4bd0e7d 100644 --- a/doc/RE +++ b/doc/RE @@ -1,4 +1,4 @@ -Oniguruma Regular Expressions Version 6.8.0 2018/03/07 +Oniguruma Regular Expressions Version 6.8.0 2018/03/08 syntax: ONIG_SYNTAX_ONIGURUMA (default) @@ -265,15 +265,18 @@ syntax: ONIG_SYNTAX_ONIGURUMA (default) - Callouts of contents - (?{...contents...}) callouts in progress only - (?{...contents...}+/-) (+) progress and retraction, (-) retraction only - (?{...contents...}[tag]+/-) tag assigned + * Callouts of contents + (?{...contents...}) callouts in progress + (?{...contents...}D) D is a direction flag char. ('X' or '<' or '>') + D = 'X': progress and retraction, '<': retraction only + '>': progress only (default) + (?{...contents...}[tag]) tag assigned + (?{...contents...}[tag]D) - Callouts of name + * Callouts of name (*name) - (*name{args...}) with args - (*name[tag]) tag assigned + (*name{args...}) with args + (*name[tag]) tag assigned (*name[tag]{args...}) diff --git a/doc/RE.ja b/doc/RE.ja index 5eb773f..a7f6b8d 100644 --- a/doc/RE.ja +++ b/doc/RE.ja @@ -1,4 +1,4 @@ -鬼車 正規表現 Version 6.8.0 2018/03/07 +鬼車 正規表現 Version 6.8.0 2018/03/08 使用文法: ONIG_SYNTAX_ONIGURUMA (既定値) @@ -267,15 +267,17 @@ <呼び出し> - 内容の呼び出し + * 内容の呼び出し (?{...contents...}) 前進中のみの呼び出し - (?{...contents...}+/-) (+) 前進および後退, (-) 後退のみ - (?{...contents...}[tag]+/-) 目印付き + (?{...contents...}D) Dは方向指定文字 ('X' or '<' or '>') + D = 'X': 前進および後退, '<' 後退のみ, '>': 前進のみ + (?{...contents...}[tag]) 名札付き + (?{...contents...}[tag]D) - 名前の呼び出し + * 名前の呼び出し (*name) (*name{args...}) 引数付き - (*name[tag]) 目印付き + (*name[tag]) 名札付き (*name[tag]{args...}) -- 2.40.0