From e20140426e4a7331ef4055d26744b4c27848a361 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 7 Jun 2018 08:49:29 -0600 Subject: Fix font-locking of "let ref" Fixes #271 --- rust-mode-tests.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust-mode-tests.el') diff --git a/rust-mode-tests.el b/rust-mode-tests.el index 3e6c67a..64d65c4 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -1296,6 +1296,11 @@ list of substrings of `STR' each followed by its face." "let foo;" '("let" font-lock-keyword-face "foo" font-lock-variable-name-face)) + (rust-test-font-lock + "let ref foo;" + '("let" font-lock-keyword-face + "ref" font-lock-keyword-face + "foo" font-lock-variable-name-face)) (rust-test-font-lock "let mut foo;" '("let" font-lock-keyword-face -- cgit v1.2.3