Skip to content

Commit 5739d1c

Browse files
committed
Include the lexer mapping for pygments
1 parent b74f1ae commit 5739d1c

File tree

2 files changed

+572
-1
lines changed

2 files changed

+572
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ substitute = [
3939
# pkg_resource's vendored packages are directly vendored in pip.
4040
{ match='pkg_resources\.extern', replace="pip._vendor" },
4141
{ match='from \.extern', replace="from pip._vendor" },
42+
{ match='''\('pygments\.lexers\.''', replace="('pip._vendor.pygments.lexer." },
4243
]
4344
drop = [
4445
# contains unnecessary scripts
@@ -52,7 +53,7 @@ drop = [
5253
"pkg_resources/extern/",
5354
# trim vendored pygments styles and lexers
5455
"pygments/styles/[!_]*.py",
55-
'^pygments/lexers/(?!python|__init__).*\.py$',
56+
'^pygments/lexers/(?!python|__init__|_mapping).*\.py$',
5657
# trim rich's markdown support
5758
"rich/markdown.py",
5859
]

0 commit comments

Comments
 (0)