diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 22:15:23 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 22:15:23 +0200 |
commit | c7a2a483bf1c004de4a4ae171949483a90c19310 (patch) | |
tree | f32f1b69556d497130644c02cad8c7e8ea16082b | |
parent | 9c0ad332a8d47c40231f04305f33740d4a690bc3 (diff) | |
download | pygments-c7a2a483bf1c004de4a4ae171949483a90c19310.tar.gz |
HTML: allow spaces after "attr=".
-rw-r--r-- | pygments/lexers/html.py | 2 |
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'), ], |