about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-05-13 00:59:00 +0200
committerOliver Kiddle <opk@zsh.org>2023-05-13 00:59:00 +0200
commitb4d1c756f50909b4a13e5c8fe5f26f71e9d54f63 (patch)
tree3fa4474040f6c81e340e2dffa93c5ecdd695c608 /Doc
parentf3f371deb376478176866fd770fbcf9bc0d0609f (diff)
downloadzsh-b4d1c756f50909b4a13e5c8fe5f26f71e9d54f63.tar.gz
zsh-b4d1c756f50909b4a13e5c8fe5f26f71e9d54f63.tar.xz
zsh-b4d1c756f50909b4a13e5c8fe5f26f71e9d54f63.zip
51738: support pcre's alternative DFA matching algorithm
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_pcre.yo6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_pcre.yo b/Doc/Zsh/mod_pcre.yo
index 6d073985d..da73ac85a 100644
--- a/Doc/Zsh/mod_pcre.yo
+++ b/Doc/Zsh/mod_pcre.yo
@@ -25,7 +25,7 @@ may result in faster matching.
 )
 findex(pcre_match)
 item(tt(pcre_match) [ tt(-v) var(var) ] [ tt(-a) var(arr) ] \
-[ tt(-A) var(assoc) ] [ tt(-n) var(offset) ] [ tt(-b) ] var(string))(
+[ tt(-A) var(assoc) ] [ tt(-n) var(offset) ] [ tt(-bd) ] var(string))(
 Returns successfully if tt(string) matches the previously-compiled
 PCRE.
 
@@ -69,6 +69,10 @@ print -l $accum)
 )
 enditem()
 
+The option tt(-d) uses the alternative breadth-first DFA search algorithm of
+pcre. This sets tt(match), or the array given with tt(-a), to all the matches
+found from the same start point in the subject.
+
 The tt(zsh/pcre) module makes available the following test condition:
 
 startitem()