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

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

[nongnu] elpa/rust-mode dea81aa 334/486: Types get correct font-lock in


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode dea81aa 334/486: Types get correct font-lock in if-let statements
Date: Sat, 7 Aug 2021 09:25:47 -0400 (EDT)

branch: elpa/rust-mode
commit dea81aa7cc0d162d863e39113ebb9e389651f671
Author: Jonas Westlund <jonaswestlund101@gmail.com>
Commit: Jonas Westlund <jonaswestlund101@gmail.com>

    Types get correct font-lock in if-let statements
---
 rust-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index 97b5c3c..72109e5 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -682,6 +682,9 @@ match data if found. Returns nil if not within a Rust 
string."
      ;; Field names like `foo:`, highlight excluding the :
      (,(concat (rust-re-grab rust-re-ident) ":[^:]") 1 
font-lock-variable-name-face)
 
+     ;; CamelCase Means Type Or Constructor
+     (,rust-re-type-or-constructor 1 font-lock-type-face)
+
      ;; Type-inferred binding
      (,(concat "\\_<\\(?:let\\|ref\\)\\s-+\\(?:mut\\s-+\\)?" (rust-re-grab 
rust-re-ident) "\\_>") 1 font-lock-variable-name-face)
 
@@ -694,9 +697,6 @@ match data if found. Returns nil if not within a Rust 
string."
      ;; Lifetimes like `'foo`
      (,(concat "'" (rust-re-grab rust-re-ident) "[^']") 1 
font-lock-variable-name-face)
 
-     ;; CamelCase Means Type Or Constructor
-     (,rust-re-type-or-constructor 1 font-lock-type-face)
-
      ;; Question mark operator
      ("\\?" . 'rust-question-mark-face)
      )



reply via email to

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