mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 00:08:05 +03:00
dev-python/pygments-github-lexers: Revbump, add py312 (bug #929490)
Add patch to get rid of warnings about invalid escape sequences. Closes: https://bugs.gentoo.org/929490 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
diff --git a/pygments_github_lexers/github.py b/pygments_github_lexers/github.py
|
||||
index d2fa4b2..36a5c94 100644
|
||||
--- a/pygments_github_lexers/github.py
|
||||
+++ b/pygments_github_lexers/github.py
|
||||
@@ -53,7 +53,7 @@ class Dasm16Lexer(RegexLexer):
|
||||
|
||||
# Regexes yo
|
||||
char = r'[a-zA-Z$._0-9@]'
|
||||
- identifier = r'(?:[a-zA-Z$_]' + char + '*|\.' + char + '+)'
|
||||
+ identifier = r'(?:[a-zA-Z$_]' + char + r'*|\.' + char + '+)'
|
||||
number = r'[+-]?(?:0[xX][a-zA-Z0-9]+|\d+)'
|
||||
binary_number = r'0b[01_]+'
|
||||
instruction = r'(?i)(' + '|'.join(INSTRUCTIONS) + ')'
|
||||
@@ -379,7 +379,7 @@ class TOMLLexer(RegexLexer):
|
||||
(r'#.*?$', Comment.Single),
|
||||
(r'"(\\\\|\\"|[^"])*"', String),
|
||||
(r'(true|false)$', Keyword.Constant),
|
||||
- ('[a-zA-Z_][a-zA-Z0-9_\-]*', Name),
|
||||
+ (r'[a-zA-Z_][a-zA-Z0-9_\-]*', Name),
|
||||
|
||||
# Datetime
|
||||
(r'\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z', Number.Integer),
|
||||
@@ -6,7 +6,7 @@
|
||||
<name>Patrick McLean</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">pygments-github-lexers </remote-id>
|
||||
<remote-id type="pypi">pygments-github-lexers</remote-id>
|
||||
<remote-id type="github">liluo/pygments-github-lexers</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Copyright 2019-2023 Gentoo Authors
|
||||
# Copyright 2019-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -14,7 +14,6 @@ SRC_URI="https://github.com/liluo/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
@@ -23,4 +22,8 @@ BDEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/pygments-github-lexers-0.0.5-escape-sequences.patch"
|
||||
)
|
||||
|
||||
# no tests
|
||||
Reference in New Issue
Block a user