diff options
| author | Aankhen <Aankhen@users.noreply.github.com> | 2017-07-28 20:04:18 +0530 |
|---|---|---|
| committer | Aankhen <Aankhen@users.noreply.github.com> | 2017-08-10 21:01:25 +0530 |
| commit | 90f70acec333887f925ed1b4b1b46f68d5442f41 (patch) | |
| tree | 1bc115a46a9b3f767174bd7236c698379b19e588 /rust-mode.el | |
| parent | 6093d382fee9efc6cc29dd05246185079a0ff045 (diff) | |
| download | rust-mode-90f70acec333887f925ed1b4b1b46f68d5442f41.tar.gz | |
Use `font-lock-variable-name-face' for `let' bindings.
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rust-mode.el b/rust-mode.el index caf83a7..1c0921b 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -681,11 +681,8 @@ 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) - ;; Type-inferred constant - (,(concat "\\_<\\(?:let\\|ref\\)\\s-+" (rust-re-grab rust-re-ident) "\\_>") 1 font-lock-constant-face) - - ;; Type-inferred variable - (,(concat "\\_<\\(?:let\\|ref\\)\\s-+mut\\s-+" (rust-re-grab rust-re-ident) "\\_>") 1 font-lock-variable-name-face) + ;; Type-inferred binding + (,(concat "\\_<\\(?:let\\|ref\\)\\s-+\\(?:mut\\s-+\\)?" (rust-re-grab rust-re-ident) "\\_>") 1 font-lock-variable-name-face) ;; Type names like `Foo::`, highlight excluding the :: (,(rust-path-font-lock-matcher rust-re-uc-ident) 1 font-lock-type-face) |
