Skip to content

Commit cf1d2a7

Browse files
committed
vim - camel-case the non builtin types
1 parent 8337fa1 commit cf1d2a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ syn keyword rustKeyword m32 m64 m128 f80 f16 f128
3030

3131
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
3232
syn keyword rustType f64 i8 i16 i32 i64 str
33-
syn keyword rustType option either
33+
syn keyword rustType Option Either
3434

3535
" Types from libc
3636
syn keyword rustType c_float c_double c_void FILE fpos_t
@@ -44,11 +44,11 @@ syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t
4444
syn keyword rustSelf self
4545
syn keyword rustBoolean true false
4646

47-
syn keyword rustConstant some none " option
48-
syn keyword rustConstant left right " either
49-
syn keyword rustConstant ok err " result
50-
syn keyword rustConstant success failure " task
51-
syn keyword rustConstant cons nil " list
47+
syn keyword rustConstant Some None " option
48+
syn keyword rustConstant Left Right " either
49+
syn keyword rustConstant Ok Err " result
50+
syn keyword rustConstant Success Failure " task
51+
syn keyword rustConstant Cons Nil " list
5252
" syn keyword rustConstant empty node " tree
5353

5454
" Constants from libc

0 commit comments

Comments
 (0)