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

Re: \@<= multiline bug?

Expand Messages
  • Ben Fritz
    ... You already know from the mkfileVarAttr match that the pattern you are looking for matches strictly. Now you just need to match the components of it which
    Message 1 of 6 , Dec 5, 2012
    • 0 Attachment
      On Wednesday, December 5, 2012 9:37:26 PM UTC-6, Alex Efros wrote:
      > Hi!
      >
      >
      >
      > On Tue, Dec 04, 2012 at 08:29:39AM -0800, Ben Fritz wrote:
      >
      > > Maybe just match the \\\n sequences as a separate syntax item and use
      >
      > > nextgroup to enforce ordering. It should work (probably even a little
      >
      > > bit faster) and also simplify your pattern.
      >
      >
      >
      > As far as I understood, nextgroup is just a recommendation, while I've
      >
      > tried to implement more strict syntax checking "after that item can be
      >
      > only this one, and after this there can be only one of these items, etc.".
      >
      > Maybe I'm wrong in trying to go this way, because it's syntax highlighter,
      >
      > not real parser/compiler, it may be a little relaxed…
      >

      You already know from the mkfileVarAttr match that the pattern you are looking for matches strictly. Now you just need to match the components of it which can be done more lazily since you know it's there.

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.