X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=vim%2Fsyntax%2Fc.vim;h=41ac4ad30438e37443e9691dff39dd87b7a79c21;hb=755c8eadfb8b252af437c0c44b4270a289cb4d0b;hp=17b045ee503a70ec7fde09c2e517cbb95e13a40b;hpb=8c1caaaa042130f60998c8e53227968bb3ab8328;p=~madcoder%2Fdotfiles.git diff --git a/vim/syntax/c.vim b/vim/syntax/c.vim index 17b045e..41ac4ad 100644 --- a/vim/syntax/c.vim +++ b/vim/syntax/c.vim @@ -1,5 +1,5 @@ -syn keyword cOperator ssizeof fieldsizeof countof assert offsetof fieldtypeof +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,9 @@ 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 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