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

45662Re: Regexp help

Expand Messages
  • Benji Fisher
    Dec 2, 2003
    • 0 Attachment
      > I like to tinker with parsers, and I have some working, although buggy,
      > Vim scripts that do parenthesis counting. One of these days, I
      > might also take the time to dig into matchit.vim and have a look
      > at how that works.

      It uses the searchpair() function. This uses a while loop and a
      counter to keep track of nesting depth. Before the searchpair()
      function was added to vim, the while loop was in the matchit script.

      HTH --Benji Fisher
    • Show all 15 messages in this topic