diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-01-26 17:57:26 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-01-26 17:58:42 -0500 |
commit | a572b21928a33b7ede445769bde5a67356327fef (patch) | |
tree | 2c3b1b544f6f588abef39662f8b50815b2ee6dd6 /test/manual/indent | |
parent | 046db04e3da4afa7c6eb05af8c7ceb048689521a (diff) | |
download | emacs-a572b21928a33b7ede445769bde5a67356327fef.tar.gz emacs-a572b21928a33b7ede445769bde5a67356327fef.tar.bz2 emacs-a572b21928a33b7ede445769bde5a67356327fef.zip |
* 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/manual/indent')
-rwxr-xr-x | test/manual/indent/shell.sh | 7 |
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 |