[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] docTeX: font-locking of |\foobar|
From: |
jfbu |
Subject: |
Re: [AUCTeX] docTeX: font-locking of |\foobar| |
Date: |
Fri, 8 May 2015 09:38:08 +0200 |
Le 8 mai 2015 à 08:13, Tassilo Horn <address@hidden> a écrit :
> 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 _.
Or the enlarged font-lock for macro highlighting will necessitate
some toggle: (latex3-syntax-on) ?
In a (non LaTeX3) tex package of mine I use systematically _, :, but
also ? and ! as letters in inner (user-hidden) macros. Will there be
an interface for adding such things ?
In dtx files, that should be dependent on whether one is in the
\begin{macrocode}...\end{macrocode}.
best
Jean-François