branch: elpa/rust-mode
commit 9c0846aa4580685b343921a7eefb0ccfd3f0633e
Author: Micah Chalmer <[email protected]>
Commit: Micah Chalmer <[email protected]>
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)))