1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
emacs/test/indent/shell.rc
Stefan Monnier 461ef3c518 Add some shell indentation test cases.
* test/indent/shell.sh:
* test/indent/shell.rc: Add some test cases.
2012-04-28 16:04:34 -04:00

38 lines
504 B
Bash
Executable File

#!/bin/rc
if (foo) {
echo 1 \
toto \
tutu
titi
}
if not {
echo 2
}
if (foo)
echo 3 # KNOWN INDENT BUG
if not
echo 4 # KNOWN INDENT BUG
switch ($a) {
case 3
echo 4
case 5
echo 7
for (i in a b c) {
echo $i
}
for (i in a b c)
echo "$i" # KNOWN INDENT BUG
echo titi
if (foo)
echo 3 # KNOWN INDENT BUG
if not
echo 4 # KNOWN INDENT BUG
case *
echo other
}