aboutsummaryrefslogtreecommitdiffstats
path: root/test/indent/shell.rc
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2011-02-09 13:59:55 -0500
committerStefan Monnier <[email protected]>2011-02-09 13:59:55 -0500
commitccded26c1e57045a8941dd69b2566ac9a49cfe4b (patch)
tree3d44fbef168b0f826a035dc7db88902b68c1b3b7 /test/indent/shell.rc
parent33cd3ee46b26307e4f0ccd2a622a736e05041a25 (diff)
* lisp/progmodes/sh-script.el (sh-font-lock-open-heredoc): Fix case
of here-doc that immediately follows a comment. * .bzrignore: Ignore globals.h and related stamp. * test/indent/shell.sh: * test/indent/shell.rc: New files.
Diffstat (limited to 'test/indent/shell.rc')
-rwxr-xr-xtest/indent/shell.rc30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/indent/shell.rc b/test/indent/shell.rc
new file mode 100755
index 0000000000..841223555b
--- /dev/null
+++ b/test/indent/shell.rc
@@ -0,0 +1,30 @@
+#!/bin/rc
+
+if (foo) {
+ echo 1
+}
+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
+
+ case *
+ echo other
+}
+