diff options
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el index 3a99af3..5cee600 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -196,8 +196,8 @@ ;; Special types (,(regexp-opt rust-special-types 'words) . font-lock-type-face) - ;; Attributes like `#[bar(baz)]` - (,(rust-re-grab (concat "#\\[" rust-re-ident "[^]]*\\]")) + ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` + (,(rust-re-grab (concat "#\\!?[" rust-re-ident "[^]]*\\]")) 1 font-lock-preprocessor-face) ;; Syntax extension invocations like `foo!`, highlight including the ! |
