diff options
author | Larry Price <larry@industrialintellect.com> | 2013-11-29 13:35:05 -0800 |
---|---|---|
committer | Larry Price <larry@industrialintellect.com> | 2013-11-29 13:35:05 -0800 |
commit | afd483c91757103936b79e448fe7907a0420e44e (patch) | |
tree | bad6a8950f478b773802e460873ea04635959417 | |
parent | feab9dcc24146e277742a905dcd0bbf042e4aee9 (diff) | |
download | pygments-afd483c91757103936b79e448fe7907a0420e44e.tar.gz |
The lexer skeleton.
-rw-r--r-- | pygments/lexers/cypher.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pygments/lexers/cypher.py b/pygments/lexers/cypher.py new file mode 100644 index 00000000..87fe76c7 --- /dev/null +++ b/pygments/lexers/cypher.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +""" + pygments.lexers.cypher + ~~~~~~~~~~~~~~~~~~~~~~ + + A Lexer for the cypher graph query language use in the neo4j graph database. + + `CypherLexer` + + the ``tests/examplefiles`` contains file "movie_queries.cyp" which has valid + cypher queries that execute against the example database shipped with Neo4J + + + :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import re + +from pygments.lexer import Lexer, RegexLexer, do_insertions, bygroups +from pygments.token import Punctuation, Text, Comment, Operator, Name, \ +String, Number, Generic +from pygments.lexers import get_lexer_by_name, ClassNotFound + +__all__ = ['CypherLexer'] + +line_re = re.compile('.*?\n') + +name = 'Cypher' +aliases = ['cypher'] +filenames = ['*.cyp','*.cypher'] +flags = re.MULTILINE | re.DOTALL |