On Nov 12, 1:27 pm, sinbad <[email protected]> wrote: > hi, > > i am trying to syntax highlight the c function calls. i asked google, > someone suggested to add > the following in c.vim. > > " Highlight Class and Function names > syn match cCustomParen "(" contains=cParen,cCppParen > syn match cCustomFunc "\w\+\s*(" contains=cCustomParen > syn match cCustomScope "::" > syn match cCustomClass "\w\+\s*::" contains=cCustomScope > > hi def link cCustomFunc Function > hi def link cCustomClass Function > > but, i have three c.vim's in my environment. > > syntax/c.vim > indent/c.vim > ftplugin/c.vim > > i tried adding the above in all three and in each one, but it didn't > work, instead > it highlighted the ")" or "}" in RED. where should i put those lines > for it to work > properly. > > i also want to highlight the user defined typedef's with a different > color. > > for example "some_struct_t", i want to highlight the words ending with > "_t" > with a different color too. > > how can i achieve this. btw, why do we have three c.vim's ? > > thanks > sinbad
hi can anyone shed some light on this. thanks sinbad -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
