[Emacs] Don't highlight strings unless we're in Ruby-mode.

This commit is contained in:
Nathan Weizenbaum 2009-03-17 01:26:22 -07:00
parent 32de9cc47f
commit 743cbeb8d7
1 changed files with 2 additions and 1 deletions

View File

@ -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