summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-01-26 17:57:26 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2021-01-26 17:58:42 -0500
commita572b21928a33b7ede445769bde5a67356327fef (patch)
tree2c3b1b544f6f588abef39662f8b50815b2ee6dd6 /test
parent046db04e3da4afa7c6eb05af8c7ceb048689521a (diff)
downloademacs-a572b21928a33b7ede445769bde5a67356327fef.tar.gz
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): Tweak indent of new `for`
The new `for (TEST) { BODY }` syntax introduces various challenges. This patch just fixes a trivial subcase.
Diffstat (limited to 'test')
-rwxr-xr-xtest/manual/indent/shell.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/manual/indent/shell.sh b/test/manual/indent/shell.sh
index dc184ea0d77..bd4a74f7054 100755
--- a/test/manual/indent/shell.sh
+++ b/test/manual/indent/shell.sh
@@ -6,6 +6,13 @@ setlock -n /tmp/getmail.lock && echo getmail isn\'t running
toto=$(grep hello foo |
wc)
+myfun () {
+ for ((it=0; it<${limit}; ++it))
+ {
+ echo "whatever $it"
+ }
+}
+
# adsgsdg
if foo; then