branch: elpa/rust-mode
commit 5ad9b599c6beea43d6262c3ad81d95512a7e53b8
Author: Nathan Moreau <[email protected]>
Commit: Nathan Moreau <[email protected]>
subword-match for built-in formatting macros: add a test.
---
rust-mode-tests.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
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"