Skip to content

Commit 9c0846a

Browse files
committed
Add test for '\'' single quote char literal
1 parent 55080f6 commit 9c0846a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rust-mode-tests.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,3 +899,11 @@ list of substrings of `STR' each followed by its face."
899899
"'\"'; let"
900900
'("'\"'" font-lock-string-face
901901
"let" font-lock-keyword-face)))
902+
903+
(ert-deftest font-lock-single-quote-character-literal ()
904+
(rust-test-font-lock
905+
"fn main() { let ch = '\\''; }"
906+
'("fn" font-lock-keyword-face
907+
"main" font-lock-function-name-face
908+
"let" font-lock-keyword-face
909+
"'\\''" font-lock-string-face)))

0 commit comments

Comments
 (0)