branch: elpa/scala-mode commit 9f74c7dec9c2cb3661709d13f4233226f9aea152 Author: Heikki Vesalainen <heikkivesalai...@yahoo.com> Commit: Heikki Vesalainen <heikkivesalai...@yahoo.com>
Partial fix to #5. For some reason the escapes inside strings are not fontlocked before a change is made into the buffer. --- scala-mode-fontlock.el | 1 + 1 file changed, 1 insertion(+) diff --git a/scala-mode-fontlock.el b/scala-mode-fontlock.el index 4a03031..ddf6849 100644 --- a/scala-mode-fontlock.el +++ b/scala-mode-fontlock.el @@ -293,6 +293,7 @@ Does not continue past limit. (defun scala-font-lock:mark-string-escapes (limit) (when (re-search-forward scala-syntax:string-escape-re limit t) (let ((state (syntax-ppss (match-beginning 0)))) + (goto-char (match-end 0)) (= (nth 3 state) ?\")))) (defun scala-font-lock:keywords ()