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: Tassilo Horn <tsdh <at> gnu.org>
To: Arash Esbati <arash <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: Sat, 01 May 2021 08:42:47 +0200
Arash Esbati <arash <at> gnu.org> writes:

Hi Arash,

>>> While we're at, I think we should replace
>>>
>>>     "\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?"
>>>
>>> with
>>>
>>>     "\\(?:\\[[^][]*\\(?:{[^}{]*}[^}{]*\\)*\\]\\)?"
>>>
>>> at some point.
>>
>> But your advertised new regex doesn't even match the normal nested
>> bracket case, e.g., [foo=[1,2], bar={~}].
>
> It has to match [foo={[1,2]}, bar={~}].  In your example above, LaTeX
> scanner stops matching for the optional argument after ] and
> everything after that would be part of the environment.

Ah, so my example is not even valid LaTeX syntax?  If that's the case,
feel free to commit your improvement, preferably with a fontification
test

Bye,
Tassilo




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.