diff options
author | Tim Hatch <tim@timhatch.com> | 2014-04-24 10:29:50 -0400 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-04-24 10:29:50 -0400 |
commit | 4e5d0a59b65ac8eb9f0050c5a818b3444eb52092 (patch) | |
tree | 843dbc1370449fd045950544c337b77500d2c070 /pygments/lexers/graph.py | |
parent | a8a8b6565336b78879ede57b47fb889da0d9eaf8 (diff) | |
download | pygments-4e5d0a59b65ac8eb9f0050c5a818b3444eb52092.tar.gz |
Reflow Cypher lexer
Diffstat (limited to 'pygments/lexers/graph.py')
-rw-r--r-- | pygments/lexers/graph.py | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/pygments/lexers/graph.py b/pygments/lexers/graph.py index 1abaf6d3..f9e8f3a7 100644 --- a/pygments/lexers/graph.py +++ b/pygments/lexers/graph.py @@ -41,17 +41,26 @@ class CypherLexer(RegexLexer): include('relations'), include('strings') ], - 'comment': [(r'^.*//.*\n', Comment.Single)], + 'comment': [ + (r'^.*//.*\n', Comment.Single), + ], 'keywords': [ (r'create|order|match|limit|set|skip|start|return|with|where|delete' - r'|foreach|not| by ', Keyword)], - 'clauses': [(r' all | any | as | asc |create|create unique|delete|' - r'desc |distinct|foreach| in |is null|limit|match|none|' - r'order by|return|set|skip|single|start|union|where|with', - Keyword)], - 'relations': [(r'-->|-\[.*\]->|<-\[.*\]-|<--|\[|\]', Operator), - (r'<|>|<>|=|<=|=>|\(|\)|\||:|,|;', Punctuation)], - 'strings': [(r'\".*\"', String)] - } + r'|foreach|not| by ', Keyword), + ], + 'clauses': [ + (r' all | any | as | asc |create|create unique|delete|' + r'desc |distinct|foreach| in |is null|limit|match|none|' + r'order by|return|set|skip|single|start|union|where|with', + Keyword), + ], + 'relations': [ + (r'-->|-\[.*\]->|<-\[.*\]-|<--|\[|\]', Operator), + (r'<|>|<>|=|<=|=>|\(|\)|\||:|,|;', Punctuation), + ], + 'strings': [ + (r'\".*\"', String), + ] + } |