[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode a56e65c984 3/5: Improve regexp to match the refe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode a56e65c984 3/5: Improve regexp to match the reference mark & |
Date: |
Tue, 28 Dec 2021 07:58:27 -0500 (EST) |
branch: elpa/rust-mode
commit a56e65c984feb814420a64de95522fd6e228fbca
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Improve regexp to match the reference mark &
---
rust-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rust-mode.el b/rust-mode.el
index 32794c5f10..773251d8f6 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -467,7 +467,8 @@ Does not match type annotations of the form \"foo::<\"."
;; Question mark operator
("\\?" . 'rust-question-mark)
- ("\\(&\\)'?\\<" 1 'rust-ampersand-face)
+ ("\\(&+\\)\\(?:'\\(?:\\<\\|_\\)\\|\\<\\|[[({:*_|]\\)"
+ 1 'rust-ampersand-face)
)
;; Ensure we highlight `Foo` in `struct Foo` as a type.