On Fri, Sep 18, 2009 at 4:18 AM, Yegappan Lakshmanan <[email protected]>wrote:
> > Hi, > > On Thu, Sep 17, 2009 at 9:32 AM, Steven Woody <[email protected]> > wrote: > > Hi, > > My c files have something like: > > #ifdef CPPCODE > > class { > > ... #endif > > void foo(void) > > { > > ... > > } > > #ifdef CPPCODE > > } > > #endif > > the only way to let ctags correctly parsing these files is to map my .c > > files to c++ language, this is successful. But problem raised when I > begin > > to use taglist plugin, which can not treat these .c files as in c++ > > language, so I can not see my tag 'foo' as function in the left list > panel. > > Is there a solution? Thanks in advance. > > > > You can refer to the following pages: > > http://vim-taglist.sourceforge.net/manual.html#taglist-extend > http://vim-taglist.sourceforge.net/extend.html > > - Yegappan > > Sorry, maybe it is a misunderstanding, I don't want to extent to a new language, I just want taglist treat my .c files as c++ syntax. Actually, if I ':set filetype=cpp' manually for these files, taglist did right thing. But I have many many .c files, it is not easy to set them each after opened. > > > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 ([email protected]) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
