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