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

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

[nongnu] elpa/scala-mode 453c012 106/217: fixed bug in string escapes ma


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode 453c012 106/217: fixed bug in string escapes marking
Date: Sun, 29 Aug 2021 11:30:53 -0400 (EDT)

branch: elpa/scala-mode
commit 453c012911e4ae88df77cc84dbe89819c85313e2
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@yahoo.com>

    fixed bug in string escapes marking
    
    The bug caused font-locking to crash when there were string-escape like 
forms inside multi-line strings.
---
 scala-mode2-fontlock.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scala-mode2-fontlock.el b/scala-mode2-fontlock.el
index c5e9603..1da043d 100644
--- a/scala-mode2-fontlock.el
+++ b/scala-mode2-fontlock.el
@@ -294,7 +294,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)
     (goto-char (match-end 0))
-    (or (= (nth 3 (save-excursion (syntax-ppss (match-beginning 0)))) ?\")
+    (or (eq (nth 3 (save-excursion (syntax-ppss (match-beginning 0)))) ?\")
         (scala-font-lock:mark-string-escapes limit))))
 
 (defun scala-font-lock:mark-numberLiteral (re limit)



reply via email to

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