From 0ef471a8b8e2b17c6297bbf39ea51908d6b27ece Mon Sep 17 00:00:00 2001 From: Tom Jakubowski Date: Sat, 10 May 2014 16:04:25 -0700 Subject: [PATCH] Fix rust-mode font lock for macros using [] This makes `vec![]` highlight the same as `vec!()` or `vec!{}`. --- src/etc/emacs/rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/emacs/rust-mode.el b/src/etc/emacs/rust-mode.el index 580e5f89cd4e0..1312fd6a6023d 100644 --- a/src/etc/emacs/rust-mode.el +++ b/src/etc/emacs/rust-mode.el @@ -217,7 +217,7 @@ 1 font-lock-preprocessor-face) ;; Syntax extension invocations like `foo!`, highlight including the ! - (,(concat (rust-re-grab (concat rust-re-ident "!")) "[({[:space:]]") + (,(concat (rust-re-grab (concat rust-re-ident "!")) "[([{[:space:]]") 1 font-lock-preprocessor-face) ;; Field names like `foo:`, highlight excluding the :