about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2019-12-26 03:54:17 +0100
committerMikael Magnusson <mikachu@gmail.com>2020-04-02 07:42:16 +0200
commit8923d2a61824b0856839d52f3bf52aedb86fd827 (patch)
tree7c600a7c3531df51c1e010b5cb2a5c8cfec6fc5c /Doc
parentc57d660764c368d6c1e0104f2b781c85e5a33f0b (diff)
downloadzsh-8923d2a61824b0856839d52f3bf52aedb86fd827.tar.gz
zsh-8923d2a61824b0856839d52f3bf52aedb86fd827.tar.xz
zsh-8923d2a61824b0856839d52f3bf52aedb86fd827.zip
Add SHORT_REPEAT option
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/grammar.yo2
-rw-r--r--Doc/Zsh/options.yo8
2 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo
index fa0d72ff5..a4e0c1121 100644
--- a/Doc/Zsh/grammar.yo
+++ b/Doc/Zsh/grammar.yo
@@ -428,6 +428,8 @@ else the end of the test will not be recognized.  For the
 tt(for), tt(repeat), tt(case) and tt(select) commands no such special form
 for the arguments is necessary, but the other condition (the special form
 of var(sublist) or use of the tt(SHORT_LOOPS) option) still applies.
+The tt(SHORT_REPEAT) option is available to enable the short version only
+for the tt(repeat) command.
 
 startitem()
 item(tt(if) var(list) tt({) var(list) tt(}) [ tt(elif) var(list) tt({) var(list) tt(}) ] ... [ tt(else {) var(list) tt(}) ])(
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index fdea51412..2b7637ff4 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1377,6 +1377,14 @@ item(tt(SHORT_LOOPS) <C> <Z>)(
 Allow the short forms of tt(for), tt(repeat), tt(select),
 tt(if), and tt(function) constructs.
 )
+pindex(SHORT_REPEAT)
+pindex(NO_SHORT_REPEAT)
+pindex(SHORTREPEAT)
+pindex(NOSHORTREPEAT)
+item(tt(SHORT_REPEAT))(
+Allow the short form tt(repeat) as tt(SHORT_LOOPS) but without enabling
+it for the other constructs.
+)
 pindex(SUN_KEYBOARD_HACK)
 pindex(NO_SUN_KEYBOARD_HACK)
 pindex(SUNKEYBOARDHACK)