Loading ...
Sorry, an error occurred while loading the content.
 

RE: using syn-containedin

Expand Messages
  • Keith Roberts
    ... Why not allow more than one match to be active, as they are inside a syntax file? I don t see why vim couldn t loop through a table of matches as easily
    Message 1 of 7 , Feb 26, 2004
      >-----Original Message-----
      >From: Hari Krishna Dara [mailto:hari_vim@...]
      >Sent: Thursday, February 26, 2004 1:48 PM
      >To: Bram Moolenaar
      >Cc: vim@...
      >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?

      Why not allow more than one match to be active, as they are inside a
      syntax file? I don't see why vim couldn't loop through a table of
      matches as easily as checking for a single one.
    Your message has been successfully submitted and would be delivered to recipients shortly.