bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 2008-02-02; Highlighting verbatim environments gets con


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 2008-02-02; Highlighting verbatim environments gets confused
Date: Sun, 03 Feb 2008 20:56:27 +0100

* Uwe Siart (2008-02-03) writes:

> The only solution I can see is to use \beginalltt and \endalltt in place
> of \begin{alltt} and \end{alltt} during the definition of my {Enter}
> environment. Would that be acceptable LaTeX style?

\newenvironment{Enter}{\alltt}{\endalltt}

>> 1) Relax the requirement for the \end statement and find such statements
>>    without looking at text in the same line preceding it.
>>
>> 2) Revert the change made in April, i.e. find the \begin statement only
>>    if it is only preceded by whitespace or nothing.
>>
>> I currently tend to do the latter because it would be the safer, more
>> conservative option.
>
> I can't give you qualified input here since I can't judge the possible
> consequences of 1). Solution 2) means that there will be other stuff
> that is not fontified correctly so it would just shift the problem
> elsewhere, won't it?

Yes, but the font locking mechanisms do not mimic the behavior of LaTeX
or TeX and we therefore have to be live with some compromises if we
don't want to make the matching overly complicated or slow.

-- 
Ralf




reply via email to

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