about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-03-05 22:10:56 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-03-08 10:04:34 +0000
commita5482971b7ec62f2dc773cf75338865377ada6bf (patch)
treed1d57915cb9262ddad9825ea876e91f0a1a8aa12
parent6f25cbae047cd0ae12c5db13afd076d86ad2162e (diff)
downloadzsh-a5482971b7ec62f2dc773cf75338865377ada6bf.tar.gz
zsh-a5482971b7ec62f2dc773cf75338865377ada6bf.tar.xz
zsh-a5482971b7ec62f2dc773cf75338865377ada6bf.zip
40744: Document the SHORT_LOOPS 'function' syntax.
It's already mentioned in passing in zshoptions(1).
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/grammar.yo3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 49ffe3df7..864a3ec62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-08  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 40744: Doc/Zsh/grammar.yo: Document the SHORT_LOOPS 'function'
+	syntax.
+
 2017-03-07  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Sebastian: 40706: Test/V11db_gdbm.ztst: Fix ordering
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)