about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorArseny Maslennikov <ar@cs.msu.ru>2021-11-13 00:19:54 +0300
committerOliver Kiddle <opk@zsh.org>2021-11-19 21:46:11 +0100
commit12dc20832d3db73b80ab282cc667abe86a17917b (patch)
tree52995a8dc2ebadf7815ad5f69b9572d622deb155 /Doc
parenta361b88717026c4af6d8d2d208ac4ac8b530f037 (diff)
downloadzsh-12dc20832d3db73b80ab282cc667abe86a17917b.tar.gz
zsh-12dc20832d3db73b80ab282cc667abe86a17917b.tar.xz
zsh-12dc20832d3db73b80ab282cc667abe86a17917b.zip
49575: clarify _alternative's action syntax
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/compsys.yo14
1 files changed, 12 insertions, 2 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index e65f2956b..8c6bf9c40 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -3620,8 +3620,18 @@ described using the var(spec)s which are of the form:
 `var(tag)tt(:)var(descr)tt(:)var(action)'.  The var(tag)s are offered using
 tt(_tags) and if the tag is requested, the var(action) is executed with the
 given description var(descr).  The var(action)s are those accepted
-by the tt(_arguments) function (described below), excluding the
-`tt(->)var(state)' and `tt(=)var(...)' forms.
+by the tt(_arguments) function (described below), with the following
+exceptions:
+startitemize()
+itemiz(\
+The `tt(->)var(state)' and `tt(=)var(...)' forms are not supported.
+)
+itemiz(\
+The `tt(LPAR()LPAR()a\:bar b\:baz)tt(RPAR()RPAR())' form does not need
+the colon to be escaped, since the var(spec)s have no colon-separated fields
+after the var(action).
+)
+enditemize()
 
 For example, the var(action) may be a simple function call: