X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=vim%2Fsyntax%2Fc.vim;h=734f156cb136895ac305e1e0114a441226099dcb;hb=be76a648340f421704f96d132e22f71771c68fe2;hp=d31ab90a92766cbccb8f1029577e9fbeae34860c;hpb=5923f706617b966f114656c78bd60108d4ab1dde;p=~madcoder%2Fdotfiles.git diff --git a/vim/syntax/c.vim b/vim/syntax/c.vim index d31ab90..734f156 100644 --- a/vim/syntax/c.vim +++ b/vim/syntax/c.vim @@ -1,5 +1,5 @@ -syn keyword cOperator ssizeof fieldsizeof countof assert offsetof +syn keyword cOperator ssizeof fieldsizeof countof assert offsetof fieldtypeof bitsizeof syn keyword cStatement p_delete p_new p_new_raw p_clear p_realloc syn keyword cStatement mp_delete mp_new mp_new_raw syn keyword cStatement p_dup p_dupstr p_dupz @@ -8,10 +8,10 @@ syn keyword isGlobal _G syn match isGlobal "\<[a-zA-Z_][a-zA-Z0-9_]*_g\>" syn keyword cType byte -syn match cType "\<[a-zA-Z_][a-zA-Z0-9_]*_[ft]\>" syn match cType "\<[a-zA-Z_][a-zA-Z0-9_]*_\(array\|vector\|htbl\|ring\|set\)\>" 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 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 +syn match cType "\<[a-zA-Z_][a-zA-Z0-9_]*_[ft]\>" hi def link isGlobal Function hi def link cStructure Type