From 743cbeb8d71f741c1f682347038c6579d9552aaf Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Tue, 17 Mar 2009 01:26:22 -0700 Subject: [PATCH] [Emacs] Don't highlight strings unless we're in Ruby-mode. --- extra/haml-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/haml-mode.el b/extra/haml-mode.el index 0158c687..ba98e8f5 100644 --- a/extra/haml-mode.el +++ b/extra/haml-mode.el @@ -99,6 +99,7 @@ text nested beneath them.") (save-match-data (let ((font-lock-keywords ruby-font-lock-keywords) (font-lock-syntactic-keywords ruby-font-lock-syntactic-keywords) + font-lock-keywords-only font-lock-extend-region-functions font-lock-keywords-case-fold-search) ;; font-lock-fontify-region apparently isn't inclusive, @@ -283,7 +284,7 @@ whichever comes first." (set (make-local-variable 'parse-sexp-lookup-properties) t) (setq comment-start "-#") (setq indent-tabs-mode nil) - (setq font-lock-defaults '((haml-font-lock-keywords) nil t))) + (setq font-lock-defaults '((haml-font-lock-keywords) t t))) ;; Useful functions