[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#300130: tetex-extra: Bad Erlang language definition in lstlang3.sty



On 17.03.05 Enzo Nicosia (KatolaZ) (me@katolaz.homeunix.net) 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



Reply to: