Update emacs mode to support new #![inner(attribute)] syntax.

This commit is contained in:
Felix S. Klock II 2014-04-02 23:50:20 +02:00 committed by Alex Crichton
parent 898669c4e2
commit 1a1c47b918

View File

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