From 2e7c6dc245bd93576ae362c859fa7dc8c595b20f Mon Sep 17 00:00:00 2001 From: Micah Chalmer Date: Tue, 10 Feb 2015 20:21:38 -0500 Subject: 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() { -- cgit v1.2.3