-
Notifications
You must be signed in to change notification settings - Fork 14
/
listings.tex
53 lines (49 loc) · 1.42 KB
/
listings.tex
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
\definecolor{lightgray}{RGB}{242,242,242}
\definecolor{keywordcolor}{RGB}{0,0,160}
\definecolor{commentcolor}{RGB}{0,128,64}
\definecolor{instruction}{HTML}{107762}
\lstset{
% numbers=left,
% numberstyle=\scriptsize\ttfamily,
stepnumber=1,
numbersep=5pt,
%
basicstyle=\ttfamily\small,
keywordstyle=\color{keywordcolor}\bfseries\ttfamily,
commentstyle=\color{commentcolor}\ttfamily,
stringstyle=\color{stringcolor}\ttfamily,
identifierstyle=,
stringstyle=\scriptsize,
%
showstringspaces=false,
columns=flexible,
keepspaces=true,
breaklines=true,
captionpos=b,
tabsize=2,
frame=single,
}
\lstdefinelanguage{cypher}
{
morekeywords={
MATCH, OPTIONAL, WHERE, NOT, AND, OR, XOR, RETURN, DISTINCT, ORDER, BY, ASC, ASCENDING, DESC, DESCENDING, UNWIND, AS, UNION, WITH, ALL, CREATE, DELETE, DETACH, REMOVE, SET, MERGE, SET, SKIP, LIMIT, IN, CALL, CASE, WHEN,
% some legacy rules
INDEX, DROP, UNIQUE, CONSTRAINT, EXPLAIN, PROFILE, START, FOREACH, %THEN, ELSE, END,
% some SQL-only keywords
GROUP, HAVING,
% transaction-handling keywords
%COMMIT, BEGIN, ABORT,
% pseudocode
%IF,
},
sensitive=true,
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]{"},
literate=*
{<<}{\color{instruction}\guillemotleft{}}{1}
{>>}{\textcolor{instruction}{\guillemotright{}}\color{black}}{1}
}
\lstdefinelanguage{sparql}{
morekeywords={SELECT, DISTINCT, WHERE, OPTIONAL, FILTER, NOT, EXISTS, MINUS, sameTerm, bound},
}