From 13491dbadbb90f228d3a3df4051495262b5f5299 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 11 May 2014 00:14:43 +1000 Subject: [PATCH] emacs: highlight `macro_name!` in macro invocations using [] delimiters --- 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 f9142cd12768..175592d792bb 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 :