From 5ad9b599c6beea43d6262c3ad81d95512a7e53b8 Mon Sep 17 00:00:00 2001 From: Nathan Moreau Date: Tue, 22 Oct 2019 00:58:26 +0200 Subject: subword-match for built-in formatting macros: add a test. --- rust-mode-tests.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rust-mode-tests.el') diff --git a/rust-mode-tests.el b/rust-mode-tests.el index ac81d03..9d4e6b6 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -2426,7 +2426,15 @@ fn main() { "{1}" rust-string-interpolation-face "\"" font-lock-string-face "/* " font-lock-comment-delimiter-face - "no-op */" font-lock-comment-face))) + "no-op */" font-lock-comment-face)) + (rust-test-font-lock + "println!(\"123\"); eprintln!(\"123\"); cprintln!(\"123\");" + '("println!" rust-builtin-formatting-macro-face + "\"123\"" font-lock-string-face + "eprintln!" rust-builtin-formatting-macro-face + "\"123\"" font-lock-string-face + "cprintln!" font-lock-preprocessor-face + "\"123\"" font-lock-string-face))) (ert-deftest font-lock-fontify-angle-brackets () "Test that angle bracket fontify" -- cgit v1.2.3