[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 08:13:35 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Andreas Matthias <address@hidden> writes:
> Visiting the file below in docTeX-mode displays the second vertical
> bar in |\foobar| in font-latex-sedate-face, whereas it was displayed
> in font-latex-doctex-documentation-face with older AUCTeX versions.
Applies also to tex/latex.
> Are there rationales for this change?
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.
I now changed the | syntax to "paired delimiter". Now the old
fontification is back, and as a cool side-effect when you type |
actually || with point in between is inserted (with recent GNU emacsen
that have electric pair enabled by default).
> I prefer the former representation.
Yup, cause that's the correct one. :-)
If you want, you can test the git version. I think I'll also do a new
ELPA release anytime soon cause there was some critical customization
bug which just got fixed but I don't know exactly when I come to this.
Bye,
Tassilo