summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/compsys.yo6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index a0c38f8a0..de2fcc260 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -4351,7 +4351,7 @@ any argument.  In this case tt(_regex_words) could be used to generate
 a suitable expression for the arguments.
 
 )
-findex(_regex_words)
+findex(_regex_words [ tt(-t) var(term) ])
 item(tt(_regex_words) var(tag) var(description) var(spec) ...)(
 This function can be used to generate arguments for the
 tt(_regex_arguments) command which may be inserted at any point where
@@ -4379,6 +4379,10 @@ evaluated in order to avoid problems with quoting.  This means that
 typically it contains a reference to an array containing previously
 generated regex arguments.
 
+The option tt(-t) var(term) specifies a terminator for the word
+instead of the usual space.  This is handled as an auto-removable suffix
+in the manner of the option tt(-s) var(sep) to tt(_values).
+
 The result of the processing by tt(_regex_words) is placed in the array
 tt(reply), which should be made local to the calling function.
 If the set of words and arguments may be matched repeatedly, a tt(#)