We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b10ad41 commit 6093d38Copy full SHA for 6093d38
rust-mode.el
@@ -681,6 +681,12 @@ match data if found. Returns nil if not within a Rust string."
681
;; Field names like `foo:`, highlight excluding the :
682
(,(concat (rust-re-grab rust-re-ident) ":[^:]") 1 font-lock-variable-name-face)
683
684
+ ;; Type-inferred constant
685
+ (,(concat "\\_<\\(?:let\\|ref\\)\\s-+" (rust-re-grab rust-re-ident) "\\_>") 1 font-lock-constant-face)
686
+
687
+ ;; Type-inferred variable
688
+ (,(concat "\\_<\\(?:let\\|ref\\)\\s-+mut\\s-+" (rust-re-grab rust-re-ident) "\\_>") 1 font-lock-variable-name-face)
689
690
;; Type names like `Foo::`, highlight excluding the ::
691
(,(rust-path-font-lock-matcher rust-re-uc-ident) 1 font-lock-type-face)
692
0 commit comments