[Emacs] Don't give end-of-buffer errors when highlighting some tags.

This commit is contained in:
Nathan Weizenbaum 2009-03-16 16:20:21 -07:00
parent 78389e366f
commit 60e6ca02cb
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ For example, this will highlight all of the following:
(if (looking-at "\\([=~]\\) \\(.*\\)$")
(haml-fontify-region-as-ruby (match-beginning 2) (match-end 2))
;; Give font-lock something to highlight
(forward-char -1)
(looking-at "\\(\\)"))
t)))