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

45674RE: Regexp help

Expand Messages
  • John Aldridge
    Dec 2, 2003
    • 0 Attachment
      At 23:01 12-01-2003, Srinath Avadhanula wrote:

      >On Tue, 2 Dec 2003, John Aldridge wrote:
      >
      > > At 22:30 12-01-2003, Srinath Avadhanula wrote:
      > >
      > > >Thanks for the answer. It was quite an eye-opener to know that
      > > >parentheses balancing is unsolvable using regexps! On further googling,
      > > >it looks like none of the common regexp engines can actually do this...
      > >
      > > For my curiosity, what were you hoping to do with such regexes?
      > > Do you think you'll attempt a scripting solution?
      > >
      >I wanted a regexp solution for paren balancing specifically for use in
      >the vim-latex project. I have a function which creates regexp based
      >folds just like vim's native syntax foldmethod. That function requires
      >a regexp start pattern and regexp end pattern to define the start and
      >end of a fold region.

      Ah... The only automatic folding I've done is by way of the syntax files,
      and its been a while since I've written any block syntax commands.

      Thanks for the response.


      ~
      ~
      ~
      "John R. Aldridge, Jr."
    • Show all 15 messages in this topic