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]
1 parent 4fdc27e commit fca57b3Copy full SHA for fca57b3
src/etc/emacs/rust-mode.el
@@ -213,7 +213,7 @@
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 "[^]]*\\]"))
+ (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]"))
217
1 font-lock-preprocessor-face)
218
219
;; Syntax extension invocations like `foo!`, highlight including the !
0 commit comments