summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin.jarry@6wind.com>2018-06-19 12:25:57 +0200
committerRobin Jarry <robin.jarry@6wind.com>2018-06-19 12:25:57 +0200
commita6fbcf91b92ae3c9b69c0dc26ddbccc1d9378f8a (patch)
tree53e4675903f7a161297f4502cb52e7f131826fb4
parentf6d828a71611401d480b131e618ece4c8b3efd1d (diff)
downloadpygments-a6fbcf91b92ae3c9b69c0dc26ddbccc1d9378f8a.tar.gz
lexers/apache: allow '>' characters in tags
Fix lexer to support this: <IfVersion >= 2.4> ErrorLogFormat "%{cu}t %M" </IfVersion>
-rw-r--r--pygments/lexers/configs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/configs.py b/pygments/lexers/configs.py
index c39b1a52..9282fcbf 100644
--- a/pygments/lexers/configs.py
+++ b/pygments/lexers/configs.py
@@ -300,7 +300,7 @@ class ApacheConfLexer(RegexLexer):
'root': [
(r'\s+', Text),
(r'(#.*?)$', Comment),
- (r'(<[^\s>]+)(?:(\s+)(.*?))?(>)',
+ (r'(<[^\s>]+)(?:(\s+)(.*))?(>)',
bygroups(Name.Tag, Text, String, Name.Tag)),
(r'([a-z]\w*)(\s+)',
bygroups(Name.Builtin, Text), 'value'),