aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py2/pygments/lexers/xorg.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/Pygments/py2/pygments/lexers/xorg.py
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Pygments/py2/pygments/lexers/xorg.py')
-rw-r--r--contrib/python/Pygments/py2/pygments/lexers/xorg.py74
1 files changed, 37 insertions, 37 deletions
diff --git a/contrib/python/Pygments/py2/pygments/lexers/xorg.py b/contrib/python/Pygments/py2/pygments/lexers/xorg.py
index ae2e33dcd2..eadcfe76f4 100644
--- a/contrib/python/Pygments/py2/pygments/lexers/xorg.py
+++ b/contrib/python/Pygments/py2/pygments/lexers/xorg.py
@@ -1,37 +1,37 @@
-# -*- coding: utf-8 -*-
-"""
- pygments.lexers.xorg
- ~~~~~~~~~~~~~~~~~~~~
-
- Lexers for Xorg configs.
-
- :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-"""
-
-from pygments.lexer import RegexLexer, bygroups
-from pygments.token import Comment, String, Name, Text
-
-__all__ = ['XorgLexer']
-
-
-class XorgLexer(RegexLexer):
- """Lexer for xorg.conf file."""
- name = 'Xorg'
- aliases = ['xorg.conf']
- filenames = ['xorg.conf']
- mimetypes = []
-
- tokens = {
- 'root': [
- (r'\s+', Text),
- (r'#.*$', Comment),
-
- (r'((?:Sub)?Section)(\s+)("\w+")',
- bygroups(String.Escape, Text, String.Escape)),
- (r'(End(|Sub)Section)', String.Escape),
-
- (r'(\w+)(\s+)([^\n#]+)',
- bygroups(Name.Builtin, Text, Name.Constant)),
- ],
- }
+# -*- coding: utf-8 -*-
+"""
+ pygments.lexers.xorg
+ ~~~~~~~~~~~~~~~~~~~~
+
+ Lexers for Xorg configs.
+
+ :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
+ :license: BSD, see LICENSE for details.
+"""
+
+from pygments.lexer import RegexLexer, bygroups
+from pygments.token import Comment, String, Name, Text
+
+__all__ = ['XorgLexer']
+
+
+class XorgLexer(RegexLexer):
+ """Lexer for xorg.conf file."""
+ name = 'Xorg'
+ aliases = ['xorg.conf']
+ filenames = ['xorg.conf']
+ mimetypes = []
+
+ tokens = {
+ 'root': [
+ (r'\s+', Text),
+ (r'#.*$', Comment),
+
+ (r'((?:Sub)?Section)(\s+)("\w+")',
+ bygroups(String.Escape, Text, String.Escape)),
+ (r'(End(|Sub)Section)', String.Escape),
+
+ (r'(\w+)(\s+)([^\n#]+)',
+ bygroups(Name.Builtin, Text, Name.Constant)),
+ ],
+ }