branch: elpa/zig-mode commit 87841c7192db61444b5b80a1db0dacc325131ca7 Author: Travis <tssun...@gmail.com> Commit: GitHub <nore...@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 "."))