diff options
author | monster <[email protected]> | 2022-07-07 14:41:37 +0300 |
---|---|---|
committer | monster <[email protected]> | 2022-07-07 14:41:37 +0300 |
commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/python/Pygments/py3/pygments/lexers/srcinfo.py | |
parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) |
fix ya.make
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/lexers/srcinfo.py')
-rw-r--r-- | contrib/python/Pygments/py3/pygments/lexers/srcinfo.py | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/contrib/python/Pygments/py3/pygments/lexers/srcinfo.py b/contrib/python/Pygments/py3/pygments/lexers/srcinfo.py deleted file mode 100644 index 644d9b882bf..00000000000 --- a/contrib/python/Pygments/py3/pygments/lexers/srcinfo.py +++ /dev/null @@ -1,57 +0,0 @@ -""" - pygments.lexers.srcinfo - ~~~~~~~~~~~~~~~~~~~~~~~ - - Lexers for .SRCINFO files used by Arch Linux Packages. - - The description of the format can be found in the wiki: https://wiki.archlinux.org/title/.SRCINFO - - :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. - :license: BSD, see LICENSE for details. -""" - -from pygments.lexer import RegexLexer, words -from pygments.token import Text, Comment, Keyword, Name, Operator, Whitespace - -__all__ = ['SrcinfoLexer'] - -keywords = ( - 'pkgbase', 'pkgname', - 'pkgver', 'pkgrel', 'epoch', - 'pkgdesc', 'url', 'install', 'changelog', - 'arch', 'groups', 'license', 'noextract', 'options', 'backup', 'validpgpkeys', -) - -architecture_dependent_keywords = ( - 'source', 'depends', 'checkdepends', 'makedepends', 'optdepends', - 'provides', 'conflicts', 'replaces', - 'md5sums', 'sha1sums', 'sha224sums', 'sha256sums', 'sha384sums', 'sha512sums' -) - -class SrcinfoLexer(RegexLexer): - """Lexer for .SRCINFO files used by Arch Linux Packages. - - .. versionadded:: 2.11 - """ - - name = 'Srcinfo' - aliases = ['srcinfo'] - filenames = ['.SRCINFO'] - - tokens = { - 'root': [ - (r'\s+', Whitespace), - (r'#.*', Comment.Single), - (words(keywords), Keyword, 'assignment'), - (words(architecture_dependent_keywords, suffix=r'_\w+'), Keyword, 'assignment'), - (r'\w+', Name.Variable, 'assignment'), - ], - 'assignment': [ - (r' +', Whitespace), - (r'=', Operator, 'value'), - ], - 'value': [ - (r' +', Whitespace), - (r'.*', Text, '#pop:2'), - ], - } |