diff options
| author | Micah Chalmer <micah@micahchalmer.net> | 2015-02-10 20:21:38 -0500 |
|---|---|---|
| committer | Micah Chalmer <micah@micahchalmer.net> | 2015-02-10 20:21:38 -0500 |
| commit | 2e7c6dc245bd93576ae362c859fa7dc8c595b20f (patch) | |
| tree | 542ac6ca88b9cea3a0bc7316b8b0c46bdf150f5e | |
| parent | 8c9ea8827dd2e894e852eeff0aa01588bb053991 (diff) | |
| download | rust-mode-2e7c6dc245bd93576ae362c859fa7dc8c595b20f.tar.gz | |
Add test for raw string with inner quote and hash
| -rw-r--r-- | rust-mode-tests.el | 5 |
1 files changed, 5 insertions, 0 deletions
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() { |
