On Fri, Dec 27, 2013 at 02:24:20AM +0100, Luca Rocca wrote: > That said, I still hope that my question could have an answer because a > more elegant > and minimal solution is possible given that the information needed is > certainly buried > in the data structures inside Vim.
I'm not sure that's the case. Vim's syntax highlighting is based on structural analysis, not semantic analysis. 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. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]> -- -- 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.
