diff options
Diffstat (limited to 'pygments/lexers/graphviz.py')
-rw-r--r-- | pygments/lexers/graphviz.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/graphviz.py b/pygments/lexers/graphviz.py index 15ff9424..55cf2e4c 100644 --- a/pygments/lexers/graphviz.py +++ b/pygments/lexers/graphviz.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ pygments.lexers.graphviz ~~~~~~~~~~~~~~~~~~~~~~~~ @@ -34,7 +33,9 @@ class GraphvizLexer(RegexLexer): (r'(?i)(node|edge|graph|digraph|subgraph|strict)\b', Keyword), (r'--|->', Operator), (r'[{}[\]:;,]', Punctuation), - (r'(\b\D\w*)(\s*)(=)(\s*)', bygroups(Name.Attribute, Whitespace, Punctuation, Whitespace), 'attr_id'), + (r'(\b\D\w*)(\s*)(=)(\s*)', + 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'[-]?((\.[0-9]+)|([0-9]+(\.[0-9]*)?))', Number), |