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)))))