diff options
| author | Stefan Monnier | 2014-06-20 10:23:30 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-06-20 10:23:30 -0400 |
| commit | 9e248ebdc71b051911ba1a68187d300bfff39fb3 (patch) | |
| tree | 32356e67fc5269dfce022f36db137f353611b819 /test | |
| parent | 58b9840b352eeb11ee1d09f0f3224c4b9ce22fad (diff) | |
| download | emacs-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-x | test/indent/shell.sh | 8 |
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 | ||
| 36 | for foo in bar; do # bug#17721 | ||
| 37 | [ -e $foo ] && { | ||
| 38 | echo t | ||
| 39 | } && { | ||
| 40 | echo r | ||
| 41 | } | ||
| 42 | done | ||
| 43 | |||
| 36 | echo -n $(( 5 << 2 )) | 44 | echo -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). |
| 38 | 2 | 46 | 2 |