[ Quoting <[email protected]> in "Re: dynamic syntax highlighting..." ] > Miek Gieben, Wed 2012-09-19 @ 14:14:17+0200: > > Is something like this even remotely possible with Vim? Can it be done > > with a vimscript? > > In order for it to work in the general case, you'd have to embed a > parser for the language in question in Vim. Not a trivial thing to do, > especially in VimScript. I'm sure that it could theoretically be done, > but it would be a lot of work, and would probably slow down syntax > highlighting (which is already slow in some cases) considerably.
Is a full parser really needed? My gut feeling tells me if there
is omni-completion available for a language, something like this
should be reasonable easy to add. (But I could be completely wrong
as I know nothing about Vim's internals).
Regards,
--
Miek Gieben http://miek.nl
signature.asc
Description: Digital signature
