summaryrefslogtreecommitdiff
path: root/pygments/lexers/graphviz.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/graphviz.py')
-rw-r--r--pygments/lexers/graphviz.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pygments/lexers/graphviz.py b/pygments/lexers/graphviz.py
index 55cf2e4c..a6859337 100644
--- a/pygments/lexers/graphviz.py
+++ b/pygments/lexers/graphviz.py
@@ -9,7 +9,8 @@
"""
from pygments.lexer import RegexLexer, bygroups
-from pygments.token import Comment, Keyword, Operator, Name, String, Number, Punctuation, Whitespace
+from pygments.token import Comment, Keyword, Operator, Name, String, Number, \
+ Punctuation, Whitespace
__all__ = ['GraphvizLexer']
@@ -37,9 +38,9 @@ class GraphvizLexer(RegexLexer):
bygroups(Name.Attribute, Whitespace, Punctuation, Whitespace),
'attr_id'),
(r'\b(n|ne|e|se|s|sw|w|nw|c|_)\b', Name.Builtin),
- (r'\b\D\w*', Name.Tag), # node
+ (r'\b\D\w*', Name.Tag), # node
(r'[-]?((\.[0-9]+)|([0-9]+(\.[0-9]*)?))', Number),
- (r'"(\\"|[^"])*?"', Name.Tag), # quoted node
+ (r'"(\\"|[^"])*?"', Name.Tag), # quoted node
(r'<', Punctuation, 'xml'),
],
'attr_id': [
@@ -54,4 +55,4 @@ class GraphvizLexer(RegexLexer):
(r'\s+', Whitespace),
(r'[^<>\s]', Name.Tag),
]
- } \ No newline at end of file
+ }