There is an error in the coloring of a latex document when i put a '' in a lstlisting; here is the example:
\begin{lstlisting} reservedWordsFM = listToUFM $ map ((x, y, z) -> (mkFastString x, (y, z))) \end{lstlisting}
the '' is legal in the lstlisting but the bundle show an invalid string and invalidate all t he remaining document
if u wanna see the file which introduce the error you can download it here: http://macromates.com/ticket/show?ticket_id=0A9B755F
Hi Luca,
I cannot reproduce this, and downloading the file you put on the ticket did not help either. Perhaps you can send me the sample file over email? The version on the web looks really weird, no newlines etc.
Btw, what is the scope on the lines both before and after your lstlisting? You can find that by placing the caret there and pressing ctrl-shift-p. Also what is the scope inside your lstlisting?
On Sep 20, 2007, at 12:22 PM, Luca Torella wrote:
There is an error in the coloring of a latex document when i put a '' in a lstlisting; here is the example:
\begin{lstlisting} reservedWordsFM = listToUFM $ map ((x, y, z) -> (mkFastString x, (y, z))) \end{lstlisting}
the '' is legal in the lstlisting but the bundle show an invalid string and invalidate all t he remaining document
if u wanna see the file which introduce the error you can download it here: http://macromates.com/ticket/show?ticket_id=0A9B755F
Haris Skiadas Department of Mathematics and Computer Science Hanover College
On 21/09/2007, Charilaos Skiadas cskiadas@gmail.com wrote:
The version on the web looks really weird, no newlines etc.
I think that's because your web browser is trying to interpret it as HTML. If you download it, it looks okay; though it's not a standalone document (it doesn't start with \documentclass, nor indicate which packages it uses.)
Robin
On Sep 21, 2007, at 6:18 AM, Robin Houston wrote:
On 21/09/2007, Charilaos Skiadas cskiadas@gmail.com wrote:
The version on the web looks really weird, no newlines etc.
I think that's because your web browser is trying to interpret it as HTML. If you download it, it looks okay; though it's not a standalone document (it doesn't start with \documentclass, nor indicate which packages it uses.)
Ah, when I tried to save it, it had an "htm" extension, so I assumed there was something weird going on, I guess that's why the browser interpreted it as HTML.
Still, I get no problems with the syntax coloring on the file.
Robin
Haris Skiadas Department of Mathematics and Computer Science Hanover College