On Thu, Feb 22, 2007 at 12:02:48AM +0100, Marc Weber wrote: > > I find it useful to have standard functions and constants in C libraries > > highlighted. I attach syntax files for this purpose. > > Just another idea. Perhaps those highlighting definitions can also be > based on tags? > > Then it would be easy to extend the highlighting with your own > functions, too.
Hi Marc, I'm not sure what you mean. But if you mean highlighting project specific functions / constants it can already be done with the proposed modular structure. Theres a comment in the (previously attached) clibs/glibc.vim with instructions on how to generate the syntax file using exuberant-ctags. After that, one can probably set up an autocommand to set the respective buffer variables depending on the directory of the current file. Since projects won't have as many keywords as glibc, the only slow down will be with the syntax file (re)generation. ctags is reasonably fast ... GI -- The Windows98 Eveready Bunny: It's still loading, and loading...