branch: elpa/rust-mode
commit 2e7c6dc245bd93576ae362c859fa7dc8c595b20f
Author: Micah Chalmer <[email protected]>
Commit: Micah Chalmer <[email protected]>

    Add test for raw string with inner quote and hash
---
 rust-mode-tests.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index 890ec77..bdc18f3 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -968,6 +968,11 @@ list of substrings of `STR' each followed by its face."
    "r##\"I've got an octothorpe (#)\"##; foo()"
    '("r##\"I've got an octothorpe (#)\"##" font-lock-string-face)))
 
+(ert-deftest font-lock-raw-string-with-inner-quote-and-hash ()
+  (rust-test-font-lock
+   "not_the_string(); r##\"string \"# still same string\"##; not_the_string()"
+   '("r##\"string \"# still same string\"##" font-lock-string-face)))
+
 (ert-deftest font-lock-string-ending-with-r-not-raw-string ()
   (rust-test-font-lock
    "fn f() {

Reply via email to