add fieldsizeof "operator"
[~madcoder/dotfiles.git] / vim / syntax / c.vim
1
2 syn keyword cOperator  ssizeof fieldsizeof countof assert offsetof fieldtypeof
3 syn keyword cStatement p_delete p_new p_new_raw p_clear p_realloc
4 syn keyword cStatement mp_delete mp_new mp_new_raw
5 syn keyword cStatement p_dup p_dupstr p_dupz
6
7 syn keyword isGlobal   _G
8 syn match   isGlobal "\<[a-zA-Z_][a-zA-Z0-9_]*_g\>"
9
10 syn keyword cType byte
11 syn match cType "\<[a-zA-Z_][a-zA-Z0-9_]*_[ft]\>"
12 syn match cType "\<[a-zA-Z_][a-zA-Z0-9_]*_\(array\|vector\|htbl\|ring\|set\)\>"
13 syn match cFunction "\<\([a-z][a-zA-Z0-9_]*\|[a-zA-Z_][a-zA-Z0-9_]*[a-z][a-zA-Z0-9_]*\)\> *("me=e-1
14 syn match Function "\$\<\([a-z][a-zA-Z0-9_]*\|[a-zA-Z_][a-zA-Z0-9_]*[a-z][a-zA-Z0-9_]*\)\> *[({]"me=e-1
15
16 hi def link isGlobal Function
17 hi def link cStructure Type
18 hi def link cStorageClass Statement