Skip to content

Commit eda5755

Browse files
chris-morganalexcrichton
authored andcommitted
Downgrade do to a reserved keyword in Vim.
This means it gets highlighted as Error by default.
1 parent e0088ef commit eda5755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ syn keyword rustOperator as
1818

1919
syn match rustAssert "\<assert\(\w\)*!" contained
2020
syn match rustFail "\<fail\(\w\)*!" contained
21-
syn keyword rustKeyword break continue do
21+
syn keyword rustKeyword break continue
2222
syn keyword rustKeyword extern nextgroup=rustExternCrate,rustObsoleteExternMod skipwhite
2323
syn keyword rustKeyword for in if impl let
2424
syn keyword rustKeyword loop once priv pub
@@ -41,7 +41,7 @@ syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:spac
4141
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
4242

4343
" Reserved (but not yet used) keywords {{{2
44-
syn keyword rustReservedKeyword alignof be offsetof pure sizeof typeof yield
44+
syn keyword rustReservedKeyword alignof be do offsetof pure sizeof typeof yield
4545

4646
" Built-in types {{{2
4747
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32

0 commit comments

Comments
 (0)