-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflix.sty
112 lines (109 loc) · 2.04 KB
/
flix.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{flix}[2021/11/24 Flix]
\RequirePackage{listings}
\RequirePackage{xcolor}
\definecolor{linenumber-color}{RGB}{170, 170, 170}
\definecolor{code-color}{RGB}{0, 0, 0}
\definecolor{keyword-color}{RGB}{155, 70, 147}
\definecolor{type-color}{RGB}{72, 118, 158}
\definecolor{comment-color}{RGB}{55, 55, 55}
\definecolor{string-color}{RGB}{30, 126, 19}
\lstdefinelanguage{flix}{
basicstyle = \ttfamily\footnotesize\color{code-color},
numberstyle = \footnotesize\color{linenumber-color},
keywordstyle = \color{keyword-color}\bfseries,
commentstyle = \color{comment-color},
identifierstyle = \color{black},
stringstyle = \color{string-color},
emph = [1]{Unit, Bool, Char, Float32, Float64, Int8, Int16, Int32, Int64, String},
emphstyle = [1]{\color{type-color}},
showspaces = false,
showstringspaces = false,
tabsize = 4,
numbers = left,
xleftmargin = 0.5cm,
morecomment = [l]{//},
morecomment = [n]{/*}{*/},
morestring = [b]",
morestring = [b]',
morestring = [b]""",
morekeywords = {
Absent,
Impure,
Present,
Pure,
Static,
alias,
as,
case,
catch,
choose,
choose*,
class,
dbg,
dbg!,
dbg!!,
def,
deref,
discard,
eff,
else,
enum,
false,
fix,
for,
forA,
forall,
forM,
force,
foreach,
from,
get,
if,
import,
inject,
inline,
instance,
into,
law,
lawful,
lazy,
let,
masked_cast,
match,
mod,
new,
not,
null,
open,
open_as,
override,
par,
project,
pub,
query,
region,
relational_choose,
relational_choose*,
restrictable,
resume,
sealed,
select,
set,
solve,
spawn,
static,
true,
try,
type,
typematch,
checked_cast,
checked_ecast,
unchecked_cast,
use,
where,
with,
without,
yield
},
}