[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108057: Add some shell indentation t
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108057: Add some shell indentation test cases. |
Date: |
Sat, 28 Apr 2012 16:04:34 -0400 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 108057
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Sat 2012-04-28 16:04:34 -0400
message:
Add some shell indentation test cases.
* test/indent/shell.sh:
* test/indent/shell.rc: Add some test cases.
modified:
test/ChangeLog
test/indent/shell.rc
test/indent/shell.sh
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog 2012-04-24 17:06:12 +0000
+++ b/test/ChangeLog 2012-04-28 20:04:34 +0000
@@ -1,3 +1,8 @@
+2012-04-28 Stefan Monnier <address@hidden>
+
+ * indent/shell.sh:
+ * indent/shell.rc: Ad some test cases.
+
2012-04-24 Stefan Monnier <address@hidden>
* indent/ruby.rb: New file, to test new syntax-propertize code.
=== modified file 'test/indent/shell.rc'
--- a/test/indent/shell.rc 2011-02-09 18:59:55 +0000
+++ b/test/indent/shell.rc 2012-04-28 20:04:34 +0000
@@ -1,7 +1,10 @@
#!/bin/rc
if (foo) {
- echo 1
+ echo 1 \
+ toto \
+ tutu
+ titi
}
if not {
echo 2
@@ -23,6 +26,10 @@
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
=== modified file 'test/indent/shell.sh'
--- a/test/indent/shell.sh 2011-02-09 18:59:55 +0000
+++ b/test/indent/shell.sh 2012-04-28 20:04:34 +0000
@@ -13,6 +13,7 @@
case toto
in a) hello # KNOWN INDENT BUG
;; b) hi # KNOWN INDENT BUG
+ ;; c) hi # KNOWN INDENT BUG
esac
case $toto in
@@ -34,7 +35,8 @@
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
esac |
- cat # KNOWN INDENT BUG
+ grep '.' | # KNOWN INDENT BUG
+ sed 1d
case toto in
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108057: Add some shell indentation test cases.,
Stefan Monnier <=