diff options
author | Robin Jarry <robin.jarry@6wind.com> | 2018-06-19 12:25:57 +0200 |
---|---|---|
committer | Robin Jarry <robin.jarry@6wind.com> | 2018-06-19 12:25:57 +0200 |
commit | a6fbcf91b92ae3c9b69c0dc26ddbccc1d9378f8a (patch) | |
tree | 53e4675903f7a161297f4502cb52e7f131826fb4 /pygments/lexers | |
parent | f6d828a71611401d480b131e618ece4c8b3efd1d (diff) | |
download | pygments-a6fbcf91b92ae3c9b69c0dc26ddbccc1d9378f8a.tar.gz |
lexers/apache: allow '>' characters in tags
Fix lexer to support this:
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
Diffstat (limited to 'pygments/lexers')
-rw-r--r-- | pygments/lexers/configs.py | 2 |
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'), |