summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/xorg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pygments/lexers/xorg.py b/pygments/lexers/xorg.py
index 1344f6e5..89475a80 100644
--- a/pygments/lexers/xorg.py
+++ b/pygments/lexers/xorg.py
@@ -23,12 +23,14 @@ class XorgLexer(RegexLexer):
tokens = {
'root': [
+ (r'\s+', Text),
(r'#.*$', Comment),
+
(r'((|Sub)Section)(\s+)("\w+")',
bygroups(String.Escape, String.Escape, Text, String.Escape)),
(r'(End(|Sub)Section)', String.Escape),
- (r'(^(?!S|E|#)(|\s+)(?!Sec|End|Sub)\w+)(\s+)([^\n#]+)',
- bygroups(Name.Builtin, Text, Text, Name.Constant)),
+ (r'(\w+)(\s+)([^\n#]+)',
+ bygroups(Name.Builtin, Text, Name.Constant)),
],
}