forked from deinprogramm/schreibe-dein-programm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlstlang0.sty
31 lines (31 loc) · 1.04 KB
/
lstlang0.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
\lst@definelanguage{SdP}{
morekeywords=[1]{define, lambda},
morekeywords=[2]{begin,
case, cond, match
else, if,
let*, let, letrec
and, or
quasiquote, quote, unquote, unquote-splicing,
check-expect, check-property, check-within, for-all},
showstringspaces=false,
alsodigit=!\$\%&*+./:<=>?@^_~,
sensitive=true,
morecomment=[l]{;},
morecomment=[s]{\#|}{|\#},
morestring=[b]",
basicstyle=\ttfamily\color[HTML]{2B2E82},
keywordstyle=\bf\ttfamily\color[HTML]{202060},
commentstyle=\color[HTML]{B27D2E},
stringstyle={\color[HTML]{568232}},
upquote=true,
breaklines=true,
breakatwhitespace=true,
keepspaces=true,
columns=fullflexible,
% literate={-}{\penalty10000\mbox{-}\allowbreak}{1},
% backquote, and allow breaking at hyphens, then umlauts
% https://tex.stackexchange.com/questions/463693/listings-does-not-break-at-pure-hyphen-lines/464309
literate={`}{{`}}{1} {ä}{{\"a}}{1} {ö}{{\"o}}{1} {ü}{{\"u}}{1} {Ä}{{\"A}}{1} {Ö}{{\"O}}{1} {Ü}{{\"U}}{1} {ß}{{\ss}}{1},
escapechar=\|,
mathescape=true
}