Sublime Forum

\lstinline|$foo| breaks LaTeX syntax highlighting

#1

In my LaTeX code, I’m describing code that uses $ as part of variable names. However, using those variable names inside lstinline (e.g. \lstinline|$foo|) breaks syntax highlighting.

For example, the following markup:

\lstinline|$|
\begin{lstlisting}
foo({a: 'b'})
\end{lstlisting}

is highlighted as follows:

Tested with: Stable Channel, Build 3114

0 Likes

#2

This and many more is fixed after the syntax rewrite, available at https://github.com/sublimehq/Packages

0 Likes