From 52f69fd320a1713b1205f373db8a45af24f808ba Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Mon, 30 Aug 2021 12:34:42 -0400 Subject: [PATCH] Highlight names of c_* types from std and libc --- syntax/rust.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntax/rust.vim b/syntax/rust.vim index 8407b56e..74781ace 100644 --- a/syntax/rust.vim +++ b/syntax/rust.vim @@ -78,6 +78,10 @@ syn keyword rustReservedKeyword become do priv typeof unsized abstract virtual syn keyword rustType isize usize char bool u8 u16 u32 u64 u128 f32 syn keyword rustType f64 i8 i16 i32 i64 i128 str Self +" C types from std::os::raw (and libc) {{{2 +syn keyword rustType c_void c_char c_double c_float c_int c_long c_longlong +syn keyword rustType c_schar c_short c_uchar c_uint c_ulong c_ulonglong c_ushort + " Things from the libstd v1 prelude (src/libstd/prelude/v1.rs) {{{2 " This section is just straight transformation of the contents of the prelude, " to make it easy to update.