auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Fontification of optional argument to verbatim environmen


From: Mosè Giordano
Subject: [AUCTeX-devel] Fontification of optional argument to verbatim environment
Date: Mon, 28 Apr 2014 20:00:58 +0200

Hi all,

some verbatim-like environments, notably those provided by the
fancyvrb and listings packages, takes an optional argument. As
reported here [1], AUCTeX fails to correctly fontify optional
arguments longer than one line. Do you have objections against
installing the attached patch in AUCTeX? It is the same code provided
in the answer in the above link, plus some comments. In the answer
there are also examples of how the patch improves fontification.

Actually, I found a limitation: fontification gets broken while one
edits the longer-than-one-line-optional-argument, and this is fixed by
reverting the buffer, but for the time being fontification of these
longer-than-one-line-optional-arguments is somewhat wrong anyway.

[1] http://tex.stackexchange.com/q/169609/31416

Bye,
Mosè

Attachment: verbatim-optional-argument.patch
Description: Text Data


reply via email to

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