emacs: do not highlight #foo] as an attribute

part of #14347
This commit is contained in:
Tom Jakubowski 2014-06-11 04:04:00 -07:00
parent 4fdc27e55e
commit fca57b3aee

View File

@ -213,7 +213,7 @@
(,(regexp-opt rust-special-types 'words) . font-lock-type-face)
;; Attributes like `#[bar(baz)]` or `#![bar(baz)]`
(,(rust-re-grab (concat "#\\!?[" rust-re-ident "[^]]*\\]"))
(,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]"))
1 font-lock-preprocessor-face)
;; Syntax extension invocations like `foo!`, highlight including the !