Skip to content

Commit 5ad9b59

Browse files
committed
subword-match for built-in formatting macros: add a test.
1 parent 7960c74 commit 5ad9b59

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rust-mode-tests.el

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,15 @@ fn main() {
24262426
"{1}" rust-string-interpolation-face
24272427
"\"" font-lock-string-face
24282428
"/* " font-lock-comment-delimiter-face
2429-
"no-op */" font-lock-comment-face)))
2429+
"no-op */" font-lock-comment-face))
2430+
(rust-test-font-lock
2431+
"println!(\"123\"); eprintln!(\"123\"); cprintln!(\"123\");"
2432+
'("println!" rust-builtin-formatting-macro-face
2433+
"\"123\"" font-lock-string-face
2434+
"eprintln!" rust-builtin-formatting-macro-face
2435+
"\"123\"" font-lock-string-face
2436+
"cprintln!" font-lock-preprocessor-face
2437+
"\"123\"" font-lock-string-face)))
24302438

24312439
(ert-deftest font-lock-fontify-angle-brackets ()
24322440
"Test that angle bracket fontify"

0 commit comments

Comments
 (0)