diff options
| author | Tom Jakubowski <tom@crystae.net> | 2014-06-11 04:04:00 -0700 |
|---|---|---|
| committer | Tom Jakubowski <tom@crystae.net> | 2014-06-11 05:01:16 -0700 |
| commit | 4e0a3340e13fa4cab8b4c51b2afb4fe103902e46 (patch) | |
| tree | a2c103b11f0280d0b31b32befabb6e8a23c45aef | |
| parent | 5ebe4c7877f5704f7ef52baad0fbdb82c8a69593 (diff) | |
| download | rust-mode-4e0a3340e13fa4cab8b4c51b2afb4fe103902e46.tar.gz | |
emacs: do not highlight `#foo]` as an attribute
part of #14347
| -rw-r--r-- | rust-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el index 175592d..f5a3fb9 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -213,7 +213,7 @@ (,(regexp-opt rust-special-types 'words) . font-lock-type-face) ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` - (,(rust-re-grab (concat "#\\!?[" rust-re-ident "[^]]*\\]")) + (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]")) 1 font-lock-preprocessor-face) ;; Syntax extension invocations like `foo!`, highlight including the ! |
