File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1296,6 +1296,11 @@ list of substrings of `STR' each followed by its face."
1296
1296
" let foo;"
1297
1297
'(" let" font-lock-keyword-face
1298
1298
" foo" font-lock-variable-name-face ))
1299
+ (rust-test-font-lock
1300
+ " let ref foo;"
1301
+ '(" let" font-lock-keyword-face
1302
+ " ref" font-lock-keyword-face
1303
+ " foo" font-lock-variable-name-face ))
1299
1304
(rust-test-font-lock
1300
1305
" let mut foo;"
1301
1306
'(" let" font-lock-keyword-face
Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ match data if found. Returns nil if not within a Rust string."
687
687
(, rust-re-type-or-constructor 1 font-lock-type-face )
688
688
689
689
; ; Type-inferred binding
690
- (,(concat " \\ _<\\ (?:let\\ |ref\\ )\\ s-+\\ (?:mut\\ s-+\\ )?" (rust-re-grab rust-re-ident) " \\ _>" ) 1 font-lock-variable-name-face )
690
+ (,(concat " \\ _<\\ (?:let\\ s-+ref \\ |let \\ |ref\\ )\\ s-+\\ (?:mut\\ s-+\\ )?" (rust-re-grab rust-re-ident) " \\ _>" ) 1 font-lock-variable-name-face )
691
691
692
692
; ; Type names like `Foo::`, highlight excluding the ::
693
693
(,(rust-path-font-lock-matcher rust-re-uc-ident) 1 font-lock-type-face )
You can’t perform that action at this time.
0 commit comments