[Top][All Lists]

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

bug#48078: Verbatim environments with key-value arguments

From: Tassilo Horn
Subject: bug#48078: Verbatim environments with key-value arguments
Date: Sat, 01 May 2021 08:42:47 +0200
User-agent: mu4e 1.5.12; emacs 28.0.50

Arash Esbati <arash@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


reply via email to

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