emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/scala-mode 9f74c7d 015/217: Partial fix to #5.


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode 9f74c7d 015/217: Partial fix to #5.
Date: Sun, 29 Aug 2021 11:30:35 -0400 (EDT)

branch: elpa/scala-mode
commit 9f74c7dec9c2cb3661709d13f4233226f9aea152
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]