[Emacs] Make filter- and comment-highlighting work a little better.

This commit is contained in:
Nathan Weizenbaum 2009-03-17 01:38:50 -07:00
parent 1b694ba850
commit 7ecdf69418
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ text nested beneath them.")
;; Font lock
(defun haml-nested-regexp (re)
(concat "^\\( *\\)" re "\n\\(?:\\(?:\\1 .*\\| *\\)\n\\)*"))
(concat "^\\( *\\)" re "\\(\n\\(?:\\(?:\\1 .*\\| *\\)\n\\)*\\(?:\\1 .*\\| *\\)?\\)?"))
(defconst haml-font-lock-keywords
`((,(haml-nested-regexp "\\(?:-#\\|/\\).*") 0 font-lock-comment-face)