GNU bug report logs - #48078
Verbatim environments with key-value arguments

Previous Next

Package: auctex;

Reported by: Dario Gjorgjevski <dario.gjorgjevski <at> gmail.com>

Date: Wed, 28 Apr 2021 09:12:01 UTC

Severity: normal

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Tassilo Horn <tsdh <at> gnu.org>
Cc: Dario Gjorgjevski <dario.gjorgjevski <at> gmail.com>, 48078 <at> debbugs.gnu.org
Subject: bug#48078: Verbatim environments with key-value arguments
Date: Thu, 29 Apr 2021 19:32:56 +0200
Hi Tassilo,

Tassilo Horn <tsdh <at> gnu.org> writes:

> But you can at least allow a fixed number of balanced braces, and I've
> just done that in order to allow one level of nested {...} in mandatory
> arguments.  (We already allowed for one level of nested brackets in an
> optional argument.)

Thank you for the quick fix.  I also removed some unnecessary escaping
of characters in the regexp for the optional arguments.  While we're at,
I think we should replace

    "\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?"

with

    "\\(?:\\[[^][]*\\(?:{[^}{]*}[^}{]*\\)*\\]\\)?"

at some point.  Rationale: One can have a single ] in an optional
argument which is hidden inside {}.  In this case, our current
implementation will fail.  I can live with the situation for the time
being, we can fix it when we get a complaint :-)

Best, Arash




This bug report was last modified 4 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.