U
    luf                     @   sn   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
mZmZmZmZmZmZmZ dgZG dd deZdS )z
    pygments.lexers.graph
    ~~~~~~~~~~~~~~~~~~~~~

    Lexers for graph query languages.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerincludebygroupsusingthiswords)KeywordPunctuationCommentOperatorNameStringNumber
WhitespaceCypherLexerc                   @   s  e Zd ZdZdZdZdgZddgZej	ej
B Zededed	ed
edededgdefgdeeeefdeeeeeefdeeeefdeeeeeefdeeeefdeeeeeefdeeeefdeeeefdeeeefdeeeefdeeeefdeeeeeefdeeeefdeeeeeefedddefgd eeeeefd!eeeeefd"eeeeefd#efd$efd%efgd&efd'ejfgd(efgd)efd*efgd+ejfgd,Zd-S ).r   zg
    For Cypher Query Language

    For the Cypher version in Neo4j 3.3

    .. versionadded:: 2.0
    ZCypherz3https://neo4j.com/docs/developer-manual/3.3/cypher/Zcypherz*.cypz*.cypherclauseskeywords	relationsstrings
whitespace	barewordscommentz^(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)%allanyasZascZ	ascendingassertcallZcasecreatedeletedescZ
descendingZdistinctendZfieldterminatorZforeachinlimitmatchmergenonenotnullremovereturnsetskipZsinglestartZthenunionZunwindyieldwherewhenwithZcollectz\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____doc__nameurlaliases	filenamesre	MULTILINE
IGNORECASEflagsr   r   r   r   r   r   r   r   r   r	   r   Variabler   r
   Singletokens rC   rC   9/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/graph.pyr      s   









&	)r7   r<   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   __all__r   rC   rC   rC   rD   <module>   s
   
 (