summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2014-04-02 23:50:20 +0200
committerAlex Crichton <alex@alexcrichton.com>2014-04-03 13:43:40 -0700
commit8dc92b20c00bb3b5ac372de7b7fa066211a452fe (patch)
tree267553a2187fc0df103a282ef0581ee81de2147a
parent2d12c3ed21b581d44376d8f068ddfdaad4a901e9 (diff)
downloadrust-mode-8dc92b20c00bb3b5ac372de7b7fa066211a452fe.tar.gz
Update emacs mode to support new `#![inner(attribute)]` syntax.
-rw-r--r--rust-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 3a99af3..5cee600 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -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 !