summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
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))))
("[<>]"