From 8650bc4335271122ee2bbcdd9888efe243f3aa53 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 580e5f89cd4e0..5ae08b58dc47f 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 :