9 \definecolor{codeblue}{rgb}{0.25,0.35,0.75} % types |
9 \definecolor{codeblue}{rgb}{0.25,0.35,0.75} % types |
10 |
10 |
11 |
11 |
12 |
12 |
13 \lstdefinelanguage{Scala}{ |
13 \lstdefinelanguage{Scala}{ |
14 keywords={abstract,case,catch,class,def,% |
14 morekeywords={abstract,case,catch,class,def,% |
15 do,else,extends,false,final,finally,% |
15 do,else,extends,false,final,finally,% |
16 for,if,implicit,import,match,mixin,% |
16 for,if,implicit,import,match,mixin,% |
17 new,null,object,override,package,% |
17 new,null,object,override,package,% |
18 private,protected,requires,return,sealed,% |
18 private,protected,requires,return,sealed,% |
19 super,this,throw,trait,true,try,% |
19 super,this,throw,trait,true,try,% |
49 numbersep=10pt, |
49 numbersep=10pt, |
50 tabsize=2, |
50 tabsize=2, |
51 showspaces=false, |
51 showspaces=false, |
52 showstringspaces=false, |
52 showstringspaces=false, |
53 xleftmargin=8mm, |
53 xleftmargin=8mm, |
54 emphstyle=\color{codeblue}\bfseries} |
54 emphstyle=\color{codeblue}\bfseries, |
|
55 keepspaces} |
55 |
56 |
56 \lstset{language=Scala, |
57 \lstset{language=Scala, |
57 style=mystyle} |
58 style=mystyle} |
58 |
59 |
59 |
60 |
60 \newcommand{\code}[1]{{\lstinline!#1!}} |
61 \newcommand{\code}[1]{{\lstinline{#1}}} |