RE: using syn-containedin
>-----Original Message-----Why not allow more than one match to be active, as they are inside a
>From: Hari Krishna Dara [mailto:hari_vim@...]
>Sent: Thursday, February 26, 2004 1:48 PM
>To: Bram Moolenaar
>Subject: Re: using syn-containedin
>On Thu, 26 Feb 2004 at 10:27pm, Bram Moolenaar wrote:
>> Hari Krishna Dara wrote:
>> > Another problem with :match is that you can only have one
>> > highlighting for the entire window, so multiple plugins can't
>> > simultaneously use this feature and expect good results.
>> You can use alternatives in the ":match" pattern, so that it matches
>> in multiple locations. Example:
>> :match Search /\%23l.*\|\%16l.*/
>Yes, I know this and that is what I meant as an alternative to
>my original highlighting scheme (it works even better with the
>\%<l and \%>l atoms). But when multiple plugins need to
>hightlight simultaneously, there is currently no way to do
>this (for the matter of fact, there is currently no way to
>know if match highlighting is active, or any character is part
>of this highlighting).
>What about making it local to buffer instead of a window?
syntax file? I don't see why vim couldn't loop through a table of
matches as easily as checking for a single one.