aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2014-06-20 10:23:30 -0400
committerStefan Monnier2014-06-20 10:23:30 -0400
commit9e248ebdc71b051911ba1a68187d300bfff39fb3 (patch)
tree32356e67fc5269dfce022f36db137f353611b819 /test
parent58b9840b352eeb11ee1d09f0f3224c4b9ce22fad (diff)
downloademacs-9e248ebdc71b051911ba1a68187d300bfff39fb3.tar.gz
emacs-9e248ebdc71b051911ba1a68187d300bfff39fb3.zip
* lisp/progmodes/sh-script.el (sh-smie-sh-rules): For { after &&, don't
align with the surrounding parent. Fixes: debbugs:17721
Diffstat (limited to 'test')
-rwxr-xr-xtest/indent/shell.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/indent/shell.sh b/test/indent/shell.sh
index ed6bcf8da3a..8e831bb8f11 100755
--- a/test/indent/shell.sh
+++ b/test/indent/shell.sh
@@ -33,6 +33,14 @@ esac
33 bar 33 bar
34} 34}
35 35
36for foo in bar; do # bug#17721
37 [ -e $foo ] && {
38 echo t
39 } && {
40 echo r
41 }
42done
43
36echo -n $(( 5 << 2 )) 44echo -n $(( 5 << 2 ))
37# This should not be treated as a heredoc (bug#12770). 45# This should not be treated as a heredoc (bug#12770).
382 462