Skip to content

Commit 77ffd41

Browse files
committed
fix(syntax): if let
The `let` in `if let` was not highlighted.
1 parent 5a59b0a commit 77ffd41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif
1717
syn match rustNoise "[,\.\[\]()]" display nextgroup=rustRange,rustNoise,rustKeyword,rustStorage,@rustLiterals,@rustIdentifiers skipempty skipwhite
1818
syn match rustNoise ";" display
1919
syn match rustBounds ":" display nextgroup=rustKeyword,rustStorage,@rustIdentifiers skipempty skipwhite
20-
syn keyword rustConditional match if else nextgroup=rustConditional,@rustIdentifiers skipempty skipwhite
20+
syn keyword rustConditional match if else nextgroup=rustConditional,rustKeyword,@rustIdentifiers skipempty skipwhite
2121
syn keyword rustRepeat loop while nextgroup=@rustIdentifiers skipempty skipwhite
2222
" `:syn match` must be used to prioritize highlighting `for` keyword.
2323
syn match rustRepeat /\<for\>/ display nextgroup=@rustIdentifiers skipempty skipwhite

0 commit comments

Comments
 (0)