diff options
author | Georg Brandl <georg@python.org> | 2014-09-20 00:06:48 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-20 00:06:48 +0200 |
commit | 3aa632c6c357746459a8847feb056cc3c86db93c (patch) | |
tree | 3b285fdac519a208586a72ad2fa8ce0fcf0993d8 /pygments/lexers/graph.py | |
parent | 827f32f543bd55ad65d01acca45658169a9b4a8a (diff) | |
parent | ed8910f067a347021854227f194f374c5b8cce2d (diff) | |
download | pygments-3aa632c6c357746459a8847feb056cc3c86db93c.tar.gz |
Merged in jaingaurav2/pygments-main-1011 (pull request #376)
Diffstat (limited to 'pygments/lexers/graph.py')
-rw-r--r-- | pygments/lexers/graph.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pygments/lexers/graph.py b/pygments/lexers/graph.py index 6aa446c7..04ec3262 100644 --- a/pygments/lexers/graph.py +++ b/pygments/lexers/graph.py @@ -12,8 +12,8 @@ import re from pygments.lexer import RegexLexer, include, bygroups, using, this -from pygments.token import Keyword, Punctuation, Text, Comment, Operator, Name,\ - String, Number, Generic, Whitespace +from pygments.token import Keyword, Punctuation, Comment, Operator, Name,\ + String, Number, Whitespace __all__ = ['CypherLexer'] @@ -30,7 +30,7 @@ class CypherLexer(RegexLexer): """ name = 'Cypher' aliases = ['cypher'] - filenames = ['*.cyp','*.cypher'] + filenames = ['*.cyp', '*.cypher'] flags = re.MULTILINE | re.IGNORECASE @@ -43,7 +43,7 @@ class CypherLexer(RegexLexer): include('strings'), include('whitespace'), include('barewords'), - ], + ], 'comment': [ (r'^.*//.*\n', Comment.Single), ], @@ -77,5 +77,3 @@ class CypherLexer(RegexLexer): (r'\d+', Number), ], } - - |