diff options
author | Georg Brandl <georg@python.org> | 2014-10-08 09:21:15 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-08 09:21:15 +0200 |
commit | 444fb6fd9b3492040a36fcca672fee8175f8d603 (patch) | |
tree | 2bd411ca78decf276b95dc6b1788e594b2e35287 /pygments/lexers/graph.py | |
parent | 491fec23ef01687906f5d71ee718522cd2917926 (diff) | |
parent | c1bfe4eed3805d3556bffa3c6b9cc2d3f6976205 (diff) | |
download | pygments-444fb6fd9b3492040a36fcca672fee8175f8d603.tar.gz |
Merged in leodemoura/pygments-main (pull request #399)
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), ], } - - |