j t S r SSKrSSKJrJrJrJrJrJr SSK J
r
JrJrJ
r
JrJrJrJr S/r " S S\5 rg)z
pygments.lexers.graph
~~~~~~~~~~~~~~~~~~~~~
Lexers for graph query languages.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
N)
RegexLexerincludebygroupsusingthiswords)KeywordPunctuationCommentOperatorNameStringNumber
WhitespaceCypherLexerc \ rS rSrSrSrSrS/rSS/rSr \
R \
R - r
\" S 5 \" S
5 \" S5 \" S5 \" S
5 \" S5 \" S5 /S\4/S\" \\\5 4S\" \\\\\5 4S\" \\\5 4S\" \\\\\5 4S\" \\\5 4S\" \\\\\5 4S\" \\\5 4S\" \\\5 4S\" \\\5 4S\" \\\5 4S\" \\\5 4S\" \\\\\5 4S\" \\\5 4S\" \\\\\5 4\" SS S!9\4/S"\" \\" \5 \5 4S#\" \\" \5 \5 4S$\" \\" \5 \5 4S%\4S&\4S'\4/S(\4S)\R2 4/S*\4/S+\4S,\4/S-\R8 4/S..rS/rg0)1r z@
For Cypher Query Language
For the Cypher version in Neo4j 3.3
Cypherz3https://neo4j.com/docs/developer-manual/3.3/cypher/cypherz*.cypz*.cypherz2.0clauseskeywords relationsstrings
whitespace barewordscommentz^(create|order|match|limit|set|skip|start|return|with|where|delete|foreach|not|by|true|false)\bz(create)(\s+)(index|unique)\bz'(drop)(\s+)(contraint|index)(\s+)(on)\bz(ends)(\s+)(with)\bz(is)(\s+)(node)(\s+)(key)\bz(is)(\s+)(null|unique)\bz(load)(\s+)(csv)(\s+)(from)\bz(on)(\s+)(match|create)\bz(optional)(\s+)(match)\bz(order)(\s+)(by)\bz(starts)(\s+)(with)\bz(union)(\s+)(all)\bz%(using)(\s+)(periodic)(\s+)(commit)\bz(using)(\s+)(index)\bz,(using)(\s+)(range|text|point)(\s+)(index)\b)%allanyasasc ascendingassertcallcasecreatedeletedesc
descendingdistinctendfieldterminatorforeachinlimitmatchmergenonenotnullremovereturnsetskipsinglestartthenunionunwindyieldwherewhenwithcollectz\b)suffixz(-\[)(.*?)(\]->)z(<-\[)(.*?)(\]-)z(-\[)(.*?)(\]-)z
-->|<--|\[|\]z<|>|<>|=|<=|=>|\(|\)|\||:|,|;z[.*{}]z#([\'"])(?:\\[tbnrf\'"\\]|[^\\])*?\1z`(?:``|[^`])+`z\s+z[a-z]\w*z\d+z//.*$)rootr r r r r r r N)__name__
__module____qualname____firstlineno____doc__nameurlaliases filenames
version_addedre MULTILINE
IGNORECASEflagsr r r r r
r r r r r
r Variabler r Singletokens__static_attributes__rD H/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/lexers/graph.pyr r s
D
?CjG*%IMLL2==(E
IJK IL!K I
45<
>
.*g6
8
7*gz7K
M
#*g6
8
+*gz7K
M
(*g6
8
-*gz7K
M
)*g6
8
(*g6
8
"*g6
8
%*g6
8
#*g6
8
5*gz7K
M
%*g6
8
<*dJH
J
G
PUV
X_
`=$
L !(8U4[("KL
(8U4[("KL
(E$K!JK
x(
-{;
$
4V<
.
Z
$
V
w~~&
MIFrW )rI rO pygments.lexerr r r r r r pygments.tokenr r
r r r
r r r __all__r rD rW rX