branch: elpa/rust-mode
commit d432409bdc210ec3fca8f5cf778bcf6814f5b121
Author: Evgeny Kurnevsky <[email protected]>
Commit: Evgeny Kurnevsky <[email protected]>
Don't insert string delimiter inside strings.
---
rust-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust-mode.el b/rust-mode.el
index 4ded41a..1d88f82 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1137,7 +1137,7 @@ raw string, or to END, whichever comes first."
(rust--char-literal-rx (1 "\"") (2 "\""))
;; Raw strings.
("\\(r\\)#*\""
- (1 (prog1 "|"
+ (1 (prog1 (if (nth 8 (syntax-ppss (match-beginning 0))) nil
(string-to-syntax "|"))
(goto-char (match-end 0))
(rust--syntax-propertize-raw-string end))))
("[<>]"