Re: listing inserisce delle slash non richieste

#37389
Up
0
Down
::

ciao a tutti!

sto usando il pacchetto listing per i listati in un linguaggio non standard, che ho definito così:

    \lstdefinelanguage{Xtend}
    {
    morecomment={/*}{*/},
    morecomment=[l]{//}
    morestring=“,
    sensitive=true,
    morekeywords={
    private, create, extension, import, let, new, null, true, false, this, WARNING, ERROR, context
    }
    }

    \newcommand{\listxtend}{ \lstset{
    backgroundcolor=\color{lbcolor},
    tabsize=4,
    rulecolor=,
    numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt,
    basicstyle=\scriptsize,
    upquote=true,
    aboveskip={1.5\baselineskip},
    columns=fixed,
    showstringspaces=false,
    extendedchars=true,
    breaklines=true,
    prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
    frame=single,
    showtabs=false,
    showspaces=false,
    showstringspaces=false,
    identifierstyle=\ttfamily,
    keywordstyle=\color[rgb]{0,0,1},
    commentstyle=\color[rgb]{0.133,0.545,0.133},
    stringstyle=\color[rgb]{0.627,0.126,0.941},
    language=Xtend,
    escapeinside={(*@}{@*)},
    }
    }

Ora, quando nel codice inserisco delle etichette con:

    (*@\label{mia_etichetta}@*)

mi appare nel codice un segno di slash (/) non richiesto…
Da cosa può dipendere secondo voi?

Grazie 1000! a presto!

L’esempio dobbiamo inventarlo noi?

Ciao
Enrico

Go to top