El Friday 27 December 2013, James McCoy escribió: > How would you handle the case where the class is defined in a different > file, so there's no declaration in scope? I think what you want would > require a parser, and I don't think it's quite reasonable to bake a > parser into Vim for every language that people want to highlight. > > Even with a parser, you couldn't simply use the results to generate > highlighting for that filetype since scope is relevant. The results > would be specific to that file, which isn't something that is > necessarily easily handled with the current infrastructure Vim provides.
I completely agree. The proper solution is integration with tools well suited for this. C++, for example, requires lots of phases: http://en.cppreference.com/w/cpp/language/translation_phases For code completion, clang_complete.vim, even if is the worst of the available Vim plugins (without asynchronous tricks like YouCompleteMe or marching.vim+reunions.vim), works quite well. I guess that since some additional highlighting definitions can be manipulated with VimL on CursorHold(I) with matchadd(), one can build a nice plugin that provides the functionality that riemann asked. -- Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2 http://barnacity.net/ | http://disperso.net -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
