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

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

[nongnu] elpa/rust-mode 4e0a334 081/486: emacs: do not highlight `#foo]`


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 4e0a334 081/486: emacs: do not highlight `#foo]` as an attribute
Date: Sat, 7 Aug 2021 09:24:53 -0400 (EDT)

branch: elpa/rust-mode
commit 4e0a3340e13fa4cab8b4c51b2afb4fe103902e46
Author: Tom Jakubowski <tom@crystae.net>
Commit: Tom Jakubowski <tom@crystae.net>

    emacs: do not highlight `#foo]` as an attribute
    
    part of #14347
---
 rust-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index 175592d..f5a3fb9 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -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 !



reply via email to

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