langs.sty
changeset 873 a25da86f7c8c
parent 820 7fd1f611c21d
child 908 0138618eff73
equal deleted inserted replaced
872:5f5e165c9a57 873:a25da86f7c8c
    35 \BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}}
    35 \BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}}
    36 \AfterEndEnvironment{lstlisting}{\end{minipage}\par}
    36 \AfterEndEnvironment{lstlisting}{\end{minipage}\par}
    37 
    37 
    38 \lstdefinelanguage{Scala}{
    38 \lstdefinelanguage{Scala}{
    39   morekeywords={abstract,then,case,catch,class,def,%
    39   morekeywords={abstract,then,case,catch,class,def,%
    40     do,else,extends,false,final,finally,%
    40     do,else,enum,extends,false,final,finally,%
    41     for,if,implicit,import,match,mixin,%
    41     for,given,if,implicit,import,lazy,match,mixin,%
    42     new,null,object,override,package,%
    42     new,null,object,override,package,%
    43     private,protected,requires,return,sealed,%
    43     private,protected,requires,return,sealed,%
    44     super,this,throw,trait,true,try,%
    44     super,this,then,throw,trait,true,try,%
    45     type,val,var,while,with,yield,write,read,lazy},%
    45     type,val,var,while,with,yield,write,read},%
    46   literate={==>}{{\mbox{\color{codepurple}{\textbf{\texttt{==>}}}}}}2,%
    46   literate={==>}{{\mbox{\color{codepurple}{\textbf{\texttt{==>}}}}}}2,%
    47   otherkeywords={=>,<-,<\%,<:,>:,\#},%
    47   otherkeywords={=>,<-,<\%,<:,>:,\#},%
    48   sensitive=true,%
    48   sensitive=true,%
    49   %directives={Int,Char,Rexp,String,Boolean,BigInt,Unit,List,Set},%
    49   %directives={Int,Char,Rexp,String,Boolean,BigInt,Unit,List,Set},%
    50   %moredelim=*[directive]:,%
    50   %moredelim=*[directive]:,%