o a@sndZddlZddlmZmZmZmZmZmZddl m Z m Z m Z m Z mZmZmZmZdgZGdddeZdS)z pygments.lexers.graph ~~~~~~~~~~~~~~~~~~~~~ Lexers for graph query languages. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) RegexLexerincludebygroupsusingthiswords)Keyword PunctuationCommentOperatorNameStringNumber Whitespace CypherLexerc@seZdZdZdZdgZddgZejej BZ e de de de d e d e d e d gd e j fgdefgdeeeefdeeeeeefdeeeefdeeeeeefdeeeefdeeeeeefdeeeefdeeeefdeeeefdeeeefdeeeefdeeeeeefedddefg deeeeefdeeeeefd eeeeefd!efd"efd#efgd$efd%ejfgd&efgd'efd(efgd)Zd*S)+rz For `Cypher Query Language `_ For the Cypher version in Neo4j 3.3 .. versionadded:: 2.0 Cyphercypherz*.cypz*.cyphercommentclauseskeywords relationsstrings whitespace barewordsz^.*//.*$z^(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)\b)$allanyasasc ascendingassertcallcasecreatedeletedesc descendingdistinctendfieldterminatorforeachinlimitmatchmergenonenotnullremovereturnsetskipsinglestartthenunionunwindyieldwherewhenwithz\b)suffixz(-\[)(.*?)(\]->)z(<-\[)(.*?)(\]-)z(-\[)(.*?)(\]-)z -->|<--|\[|\]z<|>|<>|=|<=|=>|\(|\)|\||:|,|;z[.*{}]z"(?:\\[tbnrf\'"\\]|[^\\"])*"z`(?:``|[^`])+`z\s+z[a-z]\w*z\d+)rootrrrrrrrN)__name__ __module__ __qualname____doc__namealiases filenamesre MULTILINE IGNORECASEflagsrr Singlerrrrr rrr r r VariablertokensrNrN7/usr/lib/python3/dist-packages/pygments/lexers/graph.pyrs          "  )rCrGpygments.lexerrrrrrrpygments.tokenrr r r r r rr__all__rrNrNrNrOs  (