emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r108057: Add some shell indentatio


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r108057: Add some shell indentation test cases.
Date: Fri, 02 Nov 2012 02:30:29 -0000
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
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=* \


reply via email to

[Prev in Thread] Current Thread [Next in Thread]