]> git.eshelyaron.com Git - emacs.git/commit
Fix fontification of outdated TeX form
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 10 Aug 2020 14:26:34 +0000 (16:26 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 10 Aug 2020 14:26:34 +0000 (16:26 +0200)
commitdcce2b57bb91d490787dffd437b61196f1029b41
tree5ac0c80780f5b50cbb86a4d83116b972a1d4ee0e
parent170faae31b13defc35a26ee6429dcb82066a6a66
Fix fontification of outdated TeX form

* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-2): End the
expression before the terminating $ in constructions like $\it
identifiername$
(bug#28277). This avoids italicising the final $ character.

This fixes the final $ of the final test case here:

$foo$
\textit{foo}
{\it foo}
$\mathit{identifiername}$
$\textit{identifiername}$
${\it identifiername}$
$\it identifiername$
lisp/textmodes/tex-mode.el