From a5482971b7ec62f2dc773cf75338865377ada6bf Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 5 Mar 2017 22:10:56 +0000 Subject: 40744: Document the SHORT_LOOPS 'function' syntax. It's already mentioned in passing in zshoptions(1). --- Doc/Zsh/grammar.yo | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo index 2a76964f3..463ac8831 100644 --- a/Doc/Zsh/grammar.yo +++ b/Doc/Zsh/grammar.yo @@ -461,6 +461,9 @@ item(tt(select) var(name) [ tt(in) var(word) ... var(term) ] var(sublist))( where var(term) is at least one newline or tt(;). A short form of tt(select). ) +item(tt(function) var(word) ... [ tt(+LPAR()+RPAR()) ] [ var(term) ] var(sublist))( +This is a short form of tt(function). +) enditem() texinode(Reserved Words)(Errors)(Alternate Forms For Complex Commands)(Shell Grammar) sect(Reserved Words) -- cgit 1.4.1