diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-02-27 20:44:00 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-02-27 20:44:00 +0000 |
commit | c8d1071cd8ca5c92e7d75b5dda2be529da6755bd (patch) | |
tree | 44ba8ded6a0fe172fc2e910309c4d35e989be300 /Doc/Zsh/compsys.yo | |
parent | fb25ce0e4dda89ee654c4be2a87eb2c9517fc140 (diff) | |
download | zsh-c8d1071cd8ca5c92e7d75b5dda2be529da6755bd.tar.gz zsh-c8d1071cd8ca5c92e7d75b5dda2be529da6755bd.tar.xz zsh-c8d1071cd8ca5c92e7d75b5dda2be529da6755bd.zip |
23198: improve _values -s
unposted: document _regex_words -t
Diffstat (limited to 'Doc/Zsh/compsys.yo')
-rw-r--r-- | Doc/Zsh/compsys.yo | 6 |
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(#) |