public
Rubygem
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Search Repo:
[Emacs] Make indentation work with more than just tags.
nex3 (author)
Sat May 10 22:24:52 -0700 2008
commit  3e922fbd42c769001ee9bce3015c9fd729bcb083
tree    0d071a3d9a26b9b531084ccf9c91067b2fdbb957
parent  ad2ed968deec7e3e9bfac22d89c3bbbf1461d513
...
54
55
56
57
58
 
 
 
59
60
61
...
219
220
221
222
 
223
224
225
...
54
55
56
 
 
57
58
59
60
61
62
...
220
221
222
 
223
224
225
226
0
@@ -54,8 +54,9 @@
0
 (defvar haml-block-openers
0
   `("^ *\\([%\\.#][^ \t]*\\)\\(\\[.*\\]\\)?\\({.*}\\)?\\(\\[.*\\]\\)?[ \t]*$"
0
     "^ *[-=].*do[ \t]*\\(|.*|[ \t]*\\)?$"
0
- ,(concat "^ *-[ \t]*"
0
- (regexp-opt '("else" "elsif" "rescue" "ensure" "when")))
0
+ ,(concat "^ *-[ \t]*\\("
0
+ (regexp-opt '("else" "elsif" "rescue" "ensure" "when"))
0
+ "\\)")
0
     "^ */\\(\\[.*\\]\\)?[ \t]*$"
0
     "^ *-#"
0
     "^ *:")
0
@@ -219,7 +220,7 @@
0
   "Returns true if the current line can have lines nested beneath it."
0
   (loop for opener in haml-block-openers
0
         if (looking-at opener) return t
0
- return nil))
0
+ finally return nil))
0
 
0
 (defun haml-compute-indentation ()
0
   "Calculate the maximum sensible indentation for the current line."

Comments

    No one has commented yet.