Re: [dev] another text user interface for sam

From: Maxime Coste <>
Date: Wed, 2 Mar 2016 20:40:09 +0000

On Wed, Mar 02, 2016 at 06:32:08PM +0000, Connor Lane Smith wrote:
> > * support lookaheads and lookbehinds, until I find a clean, alternative way
> > to express 'a double quote that is not preceeded by a pair number of
> > antislash' to match the closers of C strings (as an example of their
> > current usage)
> How about,
> "([^\\"]|\\.)*"

We need a closing only match, and it needs to work fine with the region matching
logic that compares begin match positions and end matches position (so the actual
regex match needs to start after the opening regex match, which in the case of
an empty string means the closing match much start on the " character).

Not sure if I made much sense, however I am thinking I could bite the bullet and
migrate to a vim like system (so with a 'skip' regex that prevents an end from
being considered). We actually already have 'recurse' matches that consume a
closer, so that could be a nice cleanup.


Received on Wed Mar 02 2016 - 21:40:09 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 02 2016 - 21:48:12 CET