From 5ebe4c7877f5704f7ef52baad0fbdb82c8a69593 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 11 May 2014 00:14:43 +1000 Subject: emacs: highlight `macro_name!` in macro invocations using [] delimiters --- rust-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust-mode.el') diff --git a/rust-mode.el b/rust-mode.el index f9142cd..175592d 100644 --- a/rust-mode.el +++ b/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 : -- cgit v1.2.3