diff options
author | Arseny Maslennikov <ar@cs.msu.ru> | 2021-11-13 00:19:54 +0300 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2021-11-19 21:46:11 +0100 |
commit | 12dc20832d3db73b80ab282cc667abe86a17917b (patch) | |
tree | 52995a8dc2ebadf7815ad5f69b9572d622deb155 | |
parent | a361b88717026c4af6d8d2d208ac4ac8b530f037 (diff) | |
download | zsh-12dc20832d3db73b80ab282cc667abe86a17917b.tar.gz zsh-12dc20832d3db73b80ab282cc667abe86a17917b.tar.xz zsh-12dc20832d3db73b80ab282cc667abe86a17917b.zip |
49575: clarify _alternative's action syntax
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Doc/Zsh/compsys.yo | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index db166f7ee..eb5eb5ed1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-11-19 Oliver Kiddle <opk@zsh.org> + + * Arseny Maslennikov: 49575: Doc/Zsh/compsys.yo: + clarify _alternative's action syntax + 2021-11-15 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> * 49563: Src/Modules/watch.c: fix build problem of watch module 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: |