summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'rust-mode-tests.el')
-rw-r--r--rust-mode-tests.el8
1 files changed, 8 insertions, 0 deletions
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)))