diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/python/Pygments/py2/pygments/lexers/xorg.py | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-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.py | 74 |
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)), + ], + } |