jlelong / vscode-latex-basics

LaTeX grammars for Visual Studio Code
MIT License
19 stars 10 forks source link

Quote on multiple lines (with inner apostrophe in math mode) causes issues #61

Closed jlelong closed 1 year ago

jlelong commented 1 year ago

Originally posted by @gertab in James-Yu/LaTeX-Workshop#3939

When quote (``...'') is split over multiple lines and there is an apostrophe in math mode, the text following it loses its coloring scheme.

No problem for versions up to 9.11.4. However in versions 9.11.5 and upwards, there is this issue.

The following snippet reproduces the issue, where the bottom text loses its color scheme:

\documentclass{article}

\begin{document}

Original text

``This $x'$ is 
on the same line''

Bottom text and math symbols $x$

\end{document}

From the given example both Original text and Bottom text and math symbols $x$ should be the same color.

jlelong commented 1 year ago

Related to #59

gertab commented 1 year ago

Thanks!