summaryrefslogtreecommitdiff
path: root/dev-python/pygments-github-lexers
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-24 23:59:27 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-24 23:59:27 +0100
commitb987a550f067c3da93b0664cf1fdc8a624c0aa38 (patch)
tree9ad1767fad656d26471a81af6bac8400a1c75218 /dev-python/pygments-github-lexers
parente3f21c8aff8a76afe3423721c437a088e9232840 (diff)
gentoo auto-resync : 24:04:2024 - 23:59:27
Diffstat (limited to 'dev-python/pygments-github-lexers')
-rw-r--r--dev-python/pygments-github-lexers/Manifest5
-rw-r--r--dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch22
-rw-r--r--dev-python/pygments-github-lexers/metadata.xml2
-rw-r--r--dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild (renamed from dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild)9
4 files changed, 32 insertions, 6 deletions
diff --git a/dev-python/pygments-github-lexers/Manifest b/dev-python/pygments-github-lexers/Manifest
index bb4fb05d0da1..391fb91a7203 100644
--- a/dev-python/pygments-github-lexers/Manifest
+++ b/dev-python/pygments-github-lexers/Manifest
@@ -1,3 +1,4 @@
+AUX pygments-github-lexers-0.0.5-escape-sequences.patch 944 BLAKE2B 8d9ba77356b6f1fa4af169ff748a0e783492bb11a36a73c010f9115bd50df316e05afeac37cd38babbff2f57c530c86b49454c12f6d84f00de952d7082bf9598 SHA512 262d138238974946e36e2ca04da55c2c4dcc63b67d53ca6c433f56ba700205cc97219f11ed92af7a9dfafa0fe5c9c310f612d853bdc9840285b744ae79bbe22a
DIST pygments-github-lexers-0.0.5.gh.tar.gz 6337 BLAKE2B 21fb1a0627c9ebf42d86d6cceea3ebec4339ef29b1d881d8b3bd5f90060ec2ba76a69ae4bf9e92420a10950ae20c7ea7ff44d5fccf8add06be1f1353cd8b7800 SHA512 429a8a81eb0228c806b6fafe5e1c64be92e719170b1af666aa9c9c7923ff4058972a167193dd0ab1ace0395fa1f6621212f800b07dcce4e59970fd905e046d71
-EBUILD pygments-github-lexers-0.0.5-r1.ebuild 536 BLAKE2B 733f53336d983d9304f8313308eb78b1aaa217381f0ae65a03cf673e317606dbc34aea0e5ccd1e45a2cda793d1d10012d8e77f16616d07ab49f20ae59bae8b50 SHA512 c3b542296858914f82766363f07c6ae656f01cef62f3035dbe1de8c35dd122cc5f32e4388493ab061181f364b23d3fed870e5aeb6134875d0f20c08b340df66e
-MISC metadata.xml 416 BLAKE2B 98b473a3b3b36c33b2fbe820ad7107ee03d138b92357f487d84c2e92935c07498040523e25ee081be0b10a5155ea3d4fae9acd27f1a14e08bcffd6c12a2d5f0c SHA512 0c7954ff3817bda54c354d4d2c4e72a5cc70871d4abd05bb94478376f6f27c6c1113ca8e9d3b20a93ddb261cac714c92fd008dfbc34f311bbafff069dcae4f2c
+EBUILD pygments-github-lexers-0.0.5-r2.ebuild 609 BLAKE2B f43c62b7ebc6cfdcfa41a40a8a2c2be1aa49b76e5050dde74ead8872523fd9dd2b49e6f001ff6bad97156140c7df7bac9094e00c576ec6bfba18dc0796e51bd8 SHA512 d0933e118cb6b48f362ea259c43bfd616845394d4fc437084284d87012670a823a3435a57c727144998830fe053d29301db62641a2a3ed8df2eae496a87174f6
+MISC metadata.xml 415 BLAKE2B 9892a976bd682f2f7b1cc60689d0e5a1b4b4c846e4a4aee87acdad83c7befc5c4919419edd23468a542552ba658e81934296712c594af3fcb9a4b12fc20cdcb6 SHA512 2295e9f3b7c8a586aa1a27650d7e7743f7ae32493ce04adb4443cce351f5ecefbdcffc272a10d32191e286b650e0d95d437ae0c675ec443f1ba2706e1a8ade9d
diff --git a/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch b/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch
new file mode 100644
index 000000000000..65c90e857bb2
--- /dev/null
+++ b/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch
@@ -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),
diff --git a/dev-python/pygments-github-lexers/metadata.xml b/dev-python/pygments-github-lexers/metadata.xml
index ad287ae27558..90e6c7f88d46 100644
--- a/dev-python/pygments-github-lexers/metadata.xml
+++ b/dev-python/pygments-github-lexers/metadata.xml
@@ -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>
diff --git a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild
index c367787797d7..dba3d0327867 100644
--- a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild
+++ b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild
@@ -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