cloud icon indicating copy to clipboard operation
cloud copied to clipboard

TeX editor indicates a syntax error on $$\text{if $x>0$}$$

Open kim-em opened this issue 10 years ago • 1 comments

The TeX editor highlights the innermost $ signs in $\text{if $x>0$}$ in red, incorrectly indicating a syntax error.

Other variations, such as $\text{if $x>0$}$ or \begin{equation*}\text{if $x>0$}\end{equation*} work fine.

kim-em avatar Aug 28 '15 01:08 kim-em

Perhaps syntax highlighting is done by an external library --- if that's the case and someone tells me which it is, I'm happy to carry the issue upstream.

kim-em avatar Aug 28 '15 01:08 kim-em