Skip to content

Commit

Permalink
Include the lexer mapping for pygments
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Nov 12, 2021
1 parent b74f1ae commit 5739d1c
Show file tree
Hide file tree
Showing 2 changed files with 572 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ substitute = [
# pkg_resource's vendored packages are directly vendored in pip.
{ match='pkg_resources\.extern', replace="pip._vendor" },
{ match='from \.extern', replace="from pip._vendor" },
{ match='''\('pygments\.lexers\.''', replace="('pip._vendor.pygments.lexer." },
]
drop = [
# contains unnecessary scripts
Expand All @@ -52,7 +53,7 @@ drop = [
"pkg_resources/extern/",
# trim vendored pygments styles and lexers
"pygments/styles/[!_]*.py",
'^pygments/lexers/(?!python|__init__).*\.py$',
'^pygments/lexers/(?!python|__init__|_mapping).*\.py$',
# trim rich's markdown support
"rich/markdown.py",
]
Expand Down
Loading

0 comments on commit 5739d1c

Please sign in to comment.