We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#![inner(attribute)]
1 parent 898669c commit 1a1c47bCopy full SHA for 1a1c47b
src/etc/emacs/rust-mode.el
@@ -196,8 +196,8 @@
196
;; Special types
197
(,(regexp-opt rust-special-types 'words) . font-lock-type-face)
198
199
- ;; Attributes like `#[bar(baz)]`
200
- (,(rust-re-grab (concat "#\\[" rust-re-ident "[^]]*\\]"))
+ ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]`
+ (,(rust-re-grab (concat "#\\!?[" rust-re-ident "[^]]*\\]"))
201
1 font-lock-preprocessor-face)
202
203
;; Syntax extension invocations like `foo!`, highlight including the !
0 commit comments