summaryrefslogtreecommitdiff
path: root/dev-python/pygments-github-lexers
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-04-24 20:15:27 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-04-24 20:15:27 +0000
commit6278a199a6e3a0636b6466bc7eba9fbf6ae507f2 (patch)
tree20bab609f31f477770a8033f4140a4a2b009446d /dev-python/pygments-github-lexers
parentc3cf01faaca23ac6fbbd9e41fdff0d53bbddd1a1 (diff)
downloadbaldeagleos-repo-6278a199a6e3a0636b6466bc7eba9fbf6ae507f2.tar.gz
baldeagleos-repo-6278a199a6e3a0636b6466bc7eba9fbf6ae507f2.tar.xz
baldeagleos-repo-6278a199a6e3a0636b6466bc7eba9fbf6ae507f2.zip
Adding metadata
Diffstat (limited to 'dev-python/pygments-github-lexers')
-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/pygments-github-lexers-0.0.5-r2.ebuild (renamed from dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild)7
2 files changed, 27 insertions, 2 deletions
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/pygments-github-lexers-0.0.5-r1.ebuild b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild
index aaf575dc72df..65d13c18be36 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,4 +1,4 @@
-# Copyright 2019-2023 Gentoo Authors
+# Copyright 2019-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -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