diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-14 14:42:49 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-14 14:42:49 +0100 |
commit | 5f3db3a36610366e12ba14cd688d3d259917f33c (patch) | |
tree | 0f7321d8a492429df8a05581d3b00fbe8d7bba96 /pygments/lexers/graphviz.py | |
parent | 41f25b1e6aa8d17794b0156fe133733d4a515ff8 (diff) | |
download | pygments-git-5f3db3a36610366e12ba14cd688d3d259917f33c.tar.gz |
Fix various issues found by make check.
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), |