Skip to content

Commit d432409

Browse files
committed
Don't insert string delimiter inside strings.
1 parent a871d10 commit d432409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ raw string, or to END, whichever comes first."
11371137
(rust--char-literal-rx (1 "\"") (2 "\""))
11381138
;; Raw strings.
11391139
("\\(r\\)#*\""
1140-
(1 (prog1 "|"
1140+
(1 (prog1 (if (nth 8 (syntax-ppss (match-beginning 0))) nil (string-to-syntax "|"))
11411141
(goto-char (match-end 0))
11421142
(rust--syntax-propertize-raw-string end))))
11431143
("[<>]"

0 commit comments

Comments
 (0)