auctex-devel
[Top][All Lists]
Advanced

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

[AUCTeX-devel] Max number of arguments for fontification?


From: Arash Esbati
Subject: [AUCTeX-devel] Max number of arguments for fontification?
Date: Fri, 18 May 2018 22:26:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3

Hi all,

I was looking at bug#31132 and the following occurred to me.  Please
consider this file and eval the `progn':

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\begin{document}

\begin{verbatim}
(progn
  (font-latex-add-keywords '(("TestI" "[[{[[{"))
                           'biblatex)

  (font-latex-add-keywords '(("TestII" "[[[{[[{"))
                           'biblatex)

  (font-latex-add-keywords '(("TestIII" "[[[[{[[{"))
                           'biblatex)

  (font-latex-add-keywords '(("TestIV" "([{[[{"))
                           'biblatex)

  (font-latex-add-keywords '(("TestV" "([[{[[{"))
                           'biblatex)

  (font-latex-add-keywords '(("TestVI" "(([[{[[{"))
                           'biblatex))
\end{verbatim}

\TestI[Pre][Post]{Mand}[Pre][Post]{Mand}
\TestII[GloPost][Pre][Post]{Mand}[Pre][Post]{Mand}
\TestIII[GloPre][GloPost][Pre][Post]{Mand}[Pre][Post]{Mand}
\TestIII[GloPre][GloPost][Pre][Post]{Mand}[Pre]{Mand}
\TestIII[GloPre][GloPost][Pre][Post]{Mand}[Post]{Mand}
\TestIII[GloPre][GloPost][Pre][Post]{Mand}{Mand}
\TestIV(Pre)[Post]{Mand}[Pre][Post]{Mand}
\TestV(GPost)[Pre][Post]{Mand}[Pre][Post]{Mand}
\TestVI(GloPre)(GloPost)[Pre][Post]{Mand}[Pre][Post]{Mand}

\end{document}
--8<---------------cut here---------------end--------------->8---

The result looks like this for me:

PNG image

The last mandatory argument is not fontified in 2 cases; it seems to
depend on prior number of (optional?) arguments.  I had a brief look at
font-latex.el, but couldn't find anything.  Any idea what's going on
here?

Best, Arash

reply via email to

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