From d432409bdc210ec3fca8f5cf778bcf6814f5b121 Mon Sep 17 00:00:00 2001 From: Evgeny Kurnevsky Date: Mon, 15 Apr 2019 20:39:05 +0300 Subject: 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)))) ("[<>]" -- cgit v1.2.3