diff options
| author | Nathan Moreau <nathan.moreau@m4x.org> | 2019-10-22 00:58:26 +0200 |
|---|---|---|
| committer | Nathan Moreau <nathan.moreau@m4x.org> | 2019-10-23 11:18:35 +0200 |
| commit | 5ad9b599c6beea43d6262c3ad81d95512a7e53b8 (patch) | |
| tree | 43df00be4c4652f3114c36fa643a1f46ceb4aeb0 | |
| parent | 7960c74d4f575fec7b0b435a86f8f07594f24f9f (diff) | |
| download | rust-mode-5ad9b599c6beea43d6262c3ad81d95512a7e53b8.tar.gz | |
subword-match for built-in formatting macros: add a test.
| -rw-r--r-- | rust-mode-tests.el | 10 |
1 files changed, 9 insertions, 1 deletions
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" |
