Subject: Re: bug#48365: 13.0.11; Dollars in distinct comments trigger math mode highlighting in text in-between

From: Ikumi Keita <[email-masked]>
Date: Thu, 13 May 2021 02:04:03 +0900

Hi Jean,

>>>>> JF <[email-masked]> writes:
>>> File B seems to have a problem
>>> % -*- mode: latex; -*-
>>> %
>>> \def\foo_with_underscore{}
>>> \newcommand\foo{$}%$
>>> % a comment
>>> A foo_bar^bar{$}
>>> % a comment
>>> B foo_bar^bar{$}
>>> % a comment
>>> C foo_bar^bar
>>> $
>>> %
>>> %
>>> 
>>> In case of file B, which differs only by an added %$ at end of the
>>> \newcommand line, the \newcommand for example is not highlighted and
>>> the B line changes colors without applying script style, see
>>> screenshot

Fixed in the git repo. Please try.

Regards,
Ikumi Keita