Skip to content

Commit 2e7c6dc

Browse files
committed
Add test for raw string with inner quote and hash
1 parent 8c9ea88 commit 2e7c6dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust-mode-tests.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,11 @@ list of substrings of `STR' each followed by its face."
968968
"r##\"I've got an octothorpe (#)\"##; foo()"
969969
'("r##\"I've got an octothorpe (#)\"##" font-lock-string-face)))
970970

971+
(ert-deftest font-lock-raw-string-with-inner-quote-and-hash ()
972+
(rust-test-font-lock
973+
"not_the_string(); r##\"string \"# still same string\"##; not_the_string()"
974+
'("r##\"string \"# still same string\"##" font-lock-string-face)))
975+
971976
(ert-deftest font-lock-string-ending-with-r-not-raw-string ()
972977
(rust-test-font-lock
973978
"fn f() {

0 commit comments

Comments
 (0)