From 7ecdf69418914178914180d6c8d55676475b792b Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Tue, 17 Mar 2009 01:38:50 -0700 Subject: [PATCH] [Emacs] Make filter- and comment-highlighting work a little better. --- extra/haml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extra/haml-mode.el b/extra/haml-mode.el index 987bc435..8e4dfa49 100644 --- a/extra/haml-mode.el +++ b/extra/haml-mode.el @@ -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)