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

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

[nongnu] elpa/zig-mode 87841c7 082/104: fix broken multiline string high


From: ELPA Syncer
Subject: [nongnu] elpa/zig-mode 87841c7 082/104: fix broken multiline string highlighting
Date: Sun, 29 Aug 2021 11:37:07 -0400 (EDT)

branch: elpa/zig-mode
commit 87841c7192db61444b5b80a1db0dacc325131ca7
Author: Travis <tssund93@gmail.com>
Commit: GitHub <noreply@github.com>

    fix broken multiline string highlighting
---
 zig-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zig-mode.el b/zig-mode.el
index 7a44807..4ec5299 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -347,7 +347,7 @@ If given a SOURCE, execute the CMD on it."
           ;; Zig multiline string literals don't support escapes, so mark all
           ;; backslashes (up to `stop') as punctation instead of escapes.
           (save-excursion
-            (goto-char (+ 2 start))
+            (goto-char (1+ start))
             (while (re-search-forward "\\\\" stop t)
               (put-text-property (match-beginning 0) (match-end 0)
                                  'syntax-table (string-to-syntax "."))



reply via email to

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