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.
2 parents 9f8d220 + e5baf1d commit feb294cCopy full SHA for feb294c
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)]`
216
- (,(rust-re-grab (concat "#\\!?[" rust-re-ident "[^]]*\\]"))
217
- 1 font-lock-preprocessor-face)
+ ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` or `#[bar = "baz"]`
+ (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]"))
+ 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