Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight names of c_* types from std and libc #456

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions syntax/rust.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down