From 9c0846aa4580685b343921a7eefb0ccfd3f0633e Mon Sep 17 00:00:00 2001 From: Micah Chalmer Date: Mon, 2 Feb 2015 20:31:04 -0500 Subject: Add test for '\'' single quote char literal --- rust-mode-tests.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rust-mode-tests.el b/rust-mode-tests.el index 0df9060..f4512f4 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -899,3 +899,11 @@ list of substrings of `STR' each followed by its face." "'\"'; let" '("'\"'" font-lock-string-face "let" font-lock-keyword-face))) + +(ert-deftest font-lock-single-quote-character-literal () + (rust-test-font-lock + "fn main() { let ch = '\\''; }" + '("fn" font-lock-keyword-face + "main" font-lock-function-name-face + "let" font-lock-keyword-face + "'\\''" font-lock-string-face))) -- cgit v1.2.3