auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] docTeX: font-locking of |\foobar|


From: Tassilo Horn
Subject: Re: [AUCTeX] docTeX: font-locking of |\foobar|
Date: Fri, 08 May 2015 11:07:19 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

jfbu <address@hidden> writes:

>> I had changed a bit font-lock stuff in order go a step towards LaTeX3
>> highlighting.  Basically, macros used to be hard-coded as \\[a-zA-Z]+
>> and now they are recognized as a \\ followed by one or many symbol or
>> word characters.  However, | had symbol syntax, thus the | in
>> \foobar| was treated as being part of the macro.
>
> Which syntax do you give to the colon : ?
>
> In LaTeX3 it is (afaik) often used in macro names, but in real life
> for end users it will be more often found like \this: <- was a
> typographical colon. This is less of an issue for the _.

That's the point.  expl3 gives it symbol syntax but in normal tex/latex
it is punctuation.

Bye,
Tassilo



reply via email to

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