diff options
author | Matth?us G. Chajdas <dev@anteru.net> | 2018-11-24 17:49:57 +0100 |
---|---|---|
committer | Matth?us G. Chajdas <dev@anteru.net> | 2018-11-24 17:49:57 +0100 |
commit | 60afd6c7897f2e0b5326645efd48c9b70db744d8 (patch) | |
tree | e591f9d9050382b03f67172c14c1eafcbf4804b3 /pygments | |
parent | fd0d9128ffcbb362ea08118c1b6fbb74590e8a60 (diff) | |
download | pygments-60afd6c7897f2e0b5326645efd48c9b70db744d8.tar.gz |
Fix the tests, and enable them for Python 2.7, 3.5, 3.6, 3.7.
Updated the documentation as well to make clear which Python versions are
officially supported.
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/xorg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/xorg.py b/pygments/lexers/xorg.py index 89475a80..e6383b30 100644 --- a/pygments/lexers/xorg.py +++ b/pygments/lexers/xorg.py @@ -26,8 +26,8 @@ class XorgLexer(RegexLexer): (r'\s+', Text), (r'#.*$', Comment), - (r'((|Sub)Section)(\s+)("\w+")', - bygroups(String.Escape, String.Escape, Text, String.Escape)), + (r'((?:Sub)?Section)(\s+)("\w+")', + bygroups(String.Escape, Text, String.Escape)), (r'(End(|Sub)Section)', String.Escape), (r'(\w+)(\s+)([^\n#]+)', |