From 5f3db3a36610366e12ba14cd688d3d259917f33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Sun, 14 Feb 2021 14:42:49 +0100 Subject: Fix various issues found by make check. --- pygments/lexers/graphviz.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pygments/lexers/graphviz.py') 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), -- cgit v1.2.1