branch: elpa/zig-mode commit 88b429deefdd37cc307852df165f454e34c6ce9a Merge: 8721255 87841c7 Author: Andrea Orru <and...@orru.io> Commit: GitHub <nore...@github.com>
Merge pull request #46 from travv0/master fix broken multiline string highlighting when string ends in blank line --- 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 "."))