Reserve the alignof, offsetof, and sizeof keywords

Closes #9333.
This commit is contained in:
Birunthan Mohanathas 2013-09-21 16:31:57 +03:00
parent eabcb39f8d
commit 2ab278f130
2 changed files with 15 additions and 5 deletions

View file

@ -34,7 +34,7 @@ syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:spac
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
" Reserved (but not yet used) keywords {{{2
syn keyword rustKeyword be yield typeof
syn keyword rustKeyword alignof be offsetof pure sizeof typeof yield
" Built-in types {{{2
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32