[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)))))
- [nongnu] elpa/zig-mode b6abeb4 093/104: Add a defvar to define if user wants to return to buffer after fmt., (continued)
- [nongnu] elpa/zig-mode b6abeb4 093/104: Add a defvar to define if user wants to return to buffer after fmt., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode df572da 099/104: Add opaque keyword, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode acf3ee8 104/104: Add GitHub Actions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2842797 007/104: Fix builtins. Reorder tables., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode e69ebc0 012/104: and, or, @panic., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 9a252eb 016/104: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ad9f398 028/104: Add some font-lock tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2879253 029/104: Don't let backslashes escape newlines in multiline strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 4542a5d 036/104: add imenu support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 604484c 039/104: M-x untabify, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 67ad48b 045/104: fix multiline string properties rules regex,
ELPA Syncer <=
- [nongnu] elpa/zig-mode ab46e22 048/104: add some zig cli build commands, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode acebfb1 057/104: Add anyframe; remove promise, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode fc7fde3 056/104: Merge pull request #23 from joachimschmidt557/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ad844c3 062/104: noasync -> nosuspend, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2c45c45 059/104: Merge pull request #24 from joachimschmidt557/add-anyframe, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 22187f4 076/104: Merge pull request #32 from joachimschmidt557/remove-this, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 8721255 079/104: Merge pull request #34 from jdpage/shell-quoting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode b7d9613 091/104: Account for braces inside of function parameters, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 41fa032 092/104: Account for paren-wrapped return type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode bab3143 094/104: Add `zig-test-optimization-mode` and `zig-run-optimization-mode`, ELPA Syncer, 2021/08/29