bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] In Regexps, Extra (Unmatched) Closing Parentheses Does No


From: arnold
Subject: Re: [bug-gawk] In Regexps, Extra (Unmatched) Closing Parentheses Does Not Produce Error Message, Treated Literally
Date: Mon, 10 Jun 2019 07:41:34 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Wolfgang Laun <address@hidden> wrote:

> gawk maintainers:
> There might be one argument for indicating an error for an unmatched
> closing parenthesis: pairs of parentheses can be nested, and this makes a
> stray ')' easy to overlook. (At least /usr/bin/mawk does this.)

This is down in the guts of the dfa and regex matchers; that code
comes from GNULIB and isn't easy to modify.  To the point that I won't
even think about looking into it.

Mawk has its own writen-from-scratch regexp matcher and so can do
that kind of thing.

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]