diff options
author | Jean Abou-Samra <jean@abou-samra.fr> | 2022-01-31 22:00:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 22:00:40 +0100 |
commit | c81e97c3c281492ac6fdf4abc841ac5b63f3f303 (patch) | |
tree | 8d52ec56246f4d08a4eb0d16317cc5c261ebfd05 /pygments/lexers/html.py | |
parent | b1edee0c8f736276a86e30d8edaed1f581e009d0 (diff) | |
download | pygments-git-c81e97c3c281492ac6fdf4abc841ac5b63f3f303.tar.gz |
Remove now redundant re.UNICODE and (?u) (#2058)
Diffstat (limited to 'pygments/lexers/html.py')
-rw-r--r-- | pygments/lexers/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/html.py b/pygments/lexers/html.py index 86ef73ae..ed28731a 100644 --- a/pygments/lexers/html.py +++ b/pygments/lexers/html.py @@ -195,7 +195,7 @@ class XmlLexer(RegexLexer): Generic lexer for XML (eXtensible Markup Language). """ - flags = re.MULTILINE | re.DOTALL | re.UNICODE + flags = re.MULTILINE | re.DOTALL name = 'XML' aliases = ['xml'] @@ -208,7 +208,7 @@ class XmlLexer(RegexLexer): 'root': [ ('[^<&]+', Text), (r'&\S*?;', Name.Entity), - (r'\<\!\[CDATA\[.*?\]\]\>', Comment.Preproc), + (r'\<\!\[CDATA\[.*?\]\]\>', Comment.Preproc), (r'<!--(.|\n)*?-->', Comment.Multiline), (r'<\?.*?\?>', Comment.Preproc), ('<![^>]*>', Comment.Preproc), |