emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode 8dc92b2 073/486: Update emacs mode to support ne


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 8dc92b2 073/486: Update emacs mode to support new `#![inner(attribute)]` syntax.
Date: Sat, 7 Aug 2021 09:24:51 -0400 (EDT)

branch: elpa/rust-mode
commit 8dc92b20c00bb3b5ac372de7b7fa066211a452fe
Author: Felix S. Klock II <pnkfelix@pnkfx.org>
Commit: Alex Crichton <alex@alexcrichton.com>

    Update emacs mode to support new `#![inner(attribute)]` syntax.
---
 rust-mode.el | 4 ++--
 1 file 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 !



reply via email to

[Prev in Thread] Current Thread [Next in Thread]