3 ��XB � @ sj d Z ddlZddlmZmZmZmZmZ ddlm Z m Z mZmZm Z mZmZmZ dgZG dd� de�ZdS )z� pygments.lexers.graph ~~~~~~~~~~~~~~~~~~~~~ Lexers for graph query languages. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)� RegexLexer�include�bygroups�using�this)�Keyword�Punctuation�Comment�Operator�Name�String�Number� Whitespace�CypherLexerc @ s� e Zd ZdZdZdgZddgZejej B Z ed�ed�ed�ed �ed �ed�ed�gd ej fgdefgdefgdeeee�e�fdeeee�e�fdeeee�e�fdefdefdefgdefdejfgdefgdefdefgd�ZdS )r z� For `Cypher Query Language <http://docs.neo4j.org/chunked/milestone/cypher-query-lang.html>`_ For the Cypher version in Neo4J 2.0 .. versionadded:: 2.0 ZCypherZcypherz*.cypz*.cypher�comment�keywords�clauses� relations�strings� whitespace� barewordsz ^.*//.*\nzS(create|order|match|limit|set|skip|start|return|with|where|delete|foreach|not|by)\bz�(all|any|as|asc|create|create\s+unique|delete|desc|distinct|foreach|in|is\s+null|limit|match|none|order\s+by|return|set|skip|single|start|union|where|with)\bz(-\[)(.*?)(\]->)z(<-\[)(.*?)(\]-)z(-\[)(.*?)(\]-)z -->|<--|\[|\]z<|>|<>|=|<=|=>|\(|\)|\||:|,|;z[.*{}]z"(?:\\[tbnrf\'"\\]|[^\\"])*"z`(?:``|[^`])+`z\s+z[a-z]\w*z\d+)�rootr r r r r r r N)�__name__� __module__�__qualname__�__doc__�name�aliases� filenames�re� MULTILINE� IGNORECASE�flagsr r �Singler r r r r r r r ZVariabler r �tokens� r% r% �/usr/lib/python3.6/graph.pyr s8 )r r Zpygments.lexerr r r r r Zpygments.tokenr r r r r r r r �__all__r r% r% r% r&