[Emacs] Don't give end-of-buffer errors when highlighting some tags.
This commit is contained in:
parent
78389e366f
commit
60e6ca02cb
|
@ -168,6 +168,7 @@ For example, this will highlight all of the following:
|
||||||
(if (looking-at "\\([=~]\\) \\(.*\\)$")
|
(if (looking-at "\\([=~]\\) \\(.*\\)$")
|
||||||
(haml-fontify-region-as-ruby (match-beginning 2) (match-end 2))
|
(haml-fontify-region-as-ruby (match-beginning 2) (match-end 2))
|
||||||
;; Give font-lock something to highlight
|
;; Give font-lock something to highlight
|
||||||
|
(forward-char -1)
|
||||||
(looking-at "\\(\\)"))
|
(looking-at "\\(\\)"))
|
||||||
t)))
|
t)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue