Skip to content

Commit 6d5f3d8

Browse files
rhysdda-x
authored andcommitted
Highlight try reserved keyword as keyword
1 parent 404076a commit 6d5f3d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax/rust.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ syn keyword rustKeyword mod trait nextgroup=rustIdentifier skipwhite skipe
5353
syn keyword rustStorage move mut ref static const
5454
syn match rustDefault /\<default\ze\_s\+\(impl\|fn\|type\|const\)\>/
5555
syn keyword rustAwait await
56+
syn match rustKeyword /\<try\>!\@!/ display
5657

5758
syn keyword rustPubScopeCrate crate contained
5859
syn match rustPubScopeDelim /[()]/ contained

0 commit comments

Comments
 (0)