#1559 LaTeX: \begin{lstlisting} should be treated the same way as \begin{verbatim}

Bug
open-accepted
Neil Hodgson
3
2013-12-03
2013-12-02
Cousteau
No

\begin{lstlisting} creates an environment in which syntax is not parsed, similarly to \begin{verbatim}. However, Scintilla doesn't respect that, making code such as

\begin{lstlisting}[language=tcl]
puts $foo
\end{lstlisting}

mess up the syntax for the rest of the document, as if there were a non-terminated $.

This can be solved easily (I think) by treating \begin{lstlisting} the same way as \begin{verbatim} is treated.

Discussion

  • Neil Hodgson
    Neil Hodgson
    2013-12-03

    • labels: --> scntilla, lexer, latex
    • status: open --> open-accepted
    • assigned_to: Neil Hodgson
    • Priority: 5 --> 3
     
  • Neil Hodgson
    Neil Hodgson
    2013-12-03

    I won't be working on this myself.