We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[foo = "bar"]
1 parent fca57b3 commit e5baf1dCopy full SHA for e5baf1d
src/etc/emacs/rust-mode.el
@@ -212,9 +212,9 @@
212
;; Special types
213
(,(regexp-opt rust-special-types 'words) . font-lock-type-face)
214
215
- ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]`
+ ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` or `#[bar = "baz"]`
216
(,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]"))
217
- 1 font-lock-preprocessor-face)
+ 1 font-lock-preprocessor-face t)
218
219
;; Syntax extension invocations like `foo!`, highlight including the !
220
(,(concat (rust-re-grab (concat rust-re-ident "!")) "[({[:space:][]")
0 commit comments