On 17.03.05 Enzo Nicosia (KatolaZ) ([EMAIL PROTECTED]) wrote:

Hi,

> \documentclass[a4paper]{article}
> \usepackage{listings}
> 
> \begin{document}
> \lstset{language=erlang}
>       \begin{lstlisting}
>       -module (pippo).
>       -export (pippo).
>       pippo (A,b) -> c.
>       \end{lstlisting}
> \end{document}
> 
> #### Simple patch: 
> 
> The problem is in the definition of "otherkeywords" at line 149 of the
> file "/usr/share/texmf/tex/latex/listings/lstlang3.sty".
> 
> The bugged line is:
> otherkeywords={->,!,[,],\{,\},},%
> 
> and should be simply replaced by:
> otherkeywords={->,!,[,],\{,\}},%
> 
> The problem is the extra common between "\}" and "}".
> 
Thanks for the good bug report! As the bug still can be found in
latest upstream (teTeX 3.0), I'll check the latest listings package
ASAP and forward that bug to Carsten if still present.
Unfortunately I don't speak Erlang so I can't check that bug for
correctness. Can you assure, that the patch doesn't have unwanted
side effects?

Regards,
  Hilmar
-- 
sigmentation fault


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to