X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=vim%2Fsyntax%2Fc.vim;h=85b3a65a2397125ed2a02e2b429a93bc3d952b34;hb=b6bd4eafe7c01514ccc15dc22b3d902b7f1dc194;hp=d31ab90a92766cbccb8f1029577e9fbeae34860c;hpb=5923f706617b966f114656c78bd60108d4ab1dde;p=~madcoder%2Fdotfiles.git diff --git a/vim/syntax/c.vim b/vim/syntax/c.vim index d31ab90..85b3a65 100644 --- a/vim/syntax/c.vim +++ b/vim/syntax/c.vim @@ -1,17 +1,17 @@ -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 syn keyword isGlobal _G syn match isGlobal "\<[a-zA-Z_][a-zA-Z0-9_]*_g\>" +syn match isGlobal "\<[gs][A-Z][a-zA-Z0-9_]*\>" 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 cPreProc "[$@]\<\([a-z][a-zA-Z0-9_]*\|[a-zA-Z_][a-zA-Z0-9_]*[a-z][a-zA-Z0-9_]*\)\>" +syn match cType "\<[a-zA-Z_][a-zA-Z0-9_]*_[bft]\>" hi def link isGlobal Function hi def link cStructure Type