summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/html.py b/pygments/lexers/html.py
index 34f2dd4f..47c84787 100644
--- a/pygments/lexers/html.py
+++ b/pygments/lexers/html.py
@@ -60,7 +60,7 @@ class HtmlLexer(RegexLexer):
],
'tag': [
(r'\s+', Text),
- (r'[\w:-]+\s*=', Name.Attribute, 'attr'),
+ (r'([\w:-]+\s*=)(\s*)', bygroups(Name.Attribute, Text), 'attr'),
(r'[\w:-]+', Name.Attribute),
(r'/?\s*>', Name.Tag, '#pop'),
],