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

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

[nongnu] elpa/zig-mode 67ad48b 045/104: fix multiline string properties


From: ELPA Syncer
Subject: [nongnu] elpa/zig-mode 67ad48b 045/104: fix multiline string properties rules regex
Date: Sun, 29 Aug 2021 11:37:00 -0400 (EDT)

branch: elpa/zig-mode
commit 67ad48ba50482061309534bfaeebbe87a70cb559
Author: Marcio Giaxa <i@mgxm.me>
Commit: Marcio Giaxa <i@mgxm.me>

    fix multiline string properties rules regex
    
    Includes a negative match in the regex that excludes backslashes that
    are preceded by single or double-quotes
---
 zig-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/zig-mode.el b/zig-mode.el
index e2932cd..4158e3d 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -265,7 +265,9 @@
   (funcall
    (syntax-propertize-rules
     ;; Multiline strings
-    ("\\(\\\\\\)\\\\"
+    ;; Do not match backslashes that are preceded by single or
+    ;; double-quotes.
+    ("[^\\'\"]c?\\(\\\\\\)\\\\"
      (1 (prog1 "|"
          (goto-char (match-end 0))
          (zig-syntax-propertize-to-newline-if-in-multiline-str end)))))



reply via email to

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