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

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

[nongnu] elpa/rust-mode ef048b3 082/486: emacs: highlight `#[foo = "bar"


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode ef048b3 082/486: emacs: highlight `#[foo = "bar"]` attributes
Date: Sat, 7 Aug 2021 09:24:53 -0400 (EDT)

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

    emacs: highlight `#[foo = "bar"]` attributes
    
    Setting `OVERRIDE` to `t` overrides the conflicting highlight Emacs
    places on string literals.
    
    Fix #14347
---
 rust-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index f5a3fb9..bec7830 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -212,9 +212,9 @@
      ;; Special types
      (,(regexp-opt rust-special-types 'words) . font-lock-type-face)
 
-     ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]`
+     ;; Attributes like `#[bar(baz)]` or `#![bar(baz)]` or `#[bar = "baz"]`
      (,(rust-re-grab (concat "#\\!?\\[" rust-re-ident "[^]]*\\]"))
-      1 font-lock-preprocessor-face)
+      1 font-lock-preprocessor-face t)
 
      ;; Syntax extension invocations like `foo!`, highlight including the !
      (,(concat (rust-re-grab (concat rust-re-ident "!")) "[({[:space:][]")



reply via email to

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