eric6/ThirdParty/Pygments/pygments/lexers/xorg.py

changeset 7701
25f42e208e08
parent 7547
21b0534faebc
child 7983
54c5cfbb1e29
equal deleted inserted replaced
7700:a3cf077a8db3 7701:25f42e208e08
3 pygments.lexers.xorg 3 pygments.lexers.xorg
4 ~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~
5 5
6 Lexers for Xorg configs. 6 Lexers for Xorg configs.
7 7
8 :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. 8 :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
9 :license: BSD, see LICENSE for details. 9 :license: BSD, see LICENSE for details.
10 """ 10 """
11 11
12 from pygments.lexer import RegexLexer, bygroups 12 from pygments.lexer import RegexLexer, bygroups
13 from pygments.token import Comment, String, Name, Text 13 from pygments.token import Comment, String, Name, Text
27 (r'\s+', Text), 27 (r'\s+', Text),
28 (r'#.*$', Comment), 28 (r'#.*$', Comment),
29 29
30 (r'((?:Sub)?Section)(\s+)("\w+")', 30 (r'((?:Sub)?Section)(\s+)("\w+")',
31 bygroups(String.Escape, Text, String.Escape)), 31 bygroups(String.Escape, Text, String.Escape)),
32 (r'(End(|Sub)Section)', String.Escape), 32 (r'(End(?:Sub)?Section)', String.Escape),
33 33
34 (r'(\w+)(\s+)([^\n#]+)', 34 (r'(\w+)(\s+)([^\n#]+)',
35 bygroups(Name.Builtin, Text, Name.Constant)), 35 bygroups(Name.Builtin, Text, Name.Constant)),
36 ], 36 ],
37 } 37 }

eric ide

mercurial