I am editing LaTeX code such as:
\documentclass{article}
\usepackage{booktabs,tabularx}
\begin{document}
Blah blah Blah blah
\begin{table}\centering
\begin{tabular}{>{$}l<{$}p{4in}}
%stopzone
\toprule
\textrm{Symbol} & Explanation
\tabularnewline\midrule
x & Pronounced ``ex''
\tabularnewline
\bottomrule
\end{tabular}
\end{table}
Bleh bleh Bleh bleh
\end{document}
The problem seems to be caused by \begin{tabular}{>{$}l<{$}p{4in}}
.
The purpose of the first dollar sign is to put the processing of
column 1 content into math mode. The purpose of the second dollar
sign is to exit math mode before proceeding to process column 2
content.
The syntax colour seems to be tripping on the dollar signs in
\begin{tabular}{>{$}l<{$}p{4in}}
and not recognizing the closing
curly braces. As a result, all text coming afterward is highlighted
purple (image below). I can't concentrate on my writing.
As per one answer, I tried inserting the %stopzone
command to
force recognition of the closing of math mode. For some reason, it
doesn't seem to have any effect.
Can someone reproduce this lack of effect of
%stopzone
? That might go a long way toward tracking down the problem.Is there anything I can do to correct the interpretation of the dollar signs by syntax highlighting? I am using Cygwin's Gvim 8.2.0486-1.