Skip to content

Merge mapping file generation scripts#2152

Merged
jeanas merged 2 commits intopygments:masterfrom
jeanas:prep
May 29, 2022
Merged

Merge mapping file generation scripts#2152
jeanas merged 2 commits intopygments:masterfrom
jeanas:prep

Conversation

@jeanas
Copy link
Copy Markdown
Contributor

@jeanas jeanas commented May 29, 2022

Use a unified script, to reduce code duplication and in preparation
for doing a similar thing with styles and filters. The new script
also uses a bit more modern Python APIs (e.g., pathlib).

Unlike the previous scripts, it does not replace replace CRLF with LF
because Git should do that itself.


I'd like to introduce a new plugin API, and the patch is getting somewhat large, so I'm trying to get some parts of it out of the way.

Use a unified script, to reduce code duplication and in preparation
for doing a similar thing with styles and filters.  The new script
also uses a bit more modern Python APIs (e.g., pathlib).

Unlike the previous scripts, it does not replace replace CRLF with LF
because Git should do that itself.
Copy link
Copy Markdown
Collaborator

@Anteru Anteru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good change to remove duplicated code and consolidate functionality. I have only very minor comments, feel free to merge without changes if you don't agree.

@jeanas
Copy link
Copy Markdown
Contributor Author

jeanas commented May 29, 2022

Thanks for the quick review! I've addressed your comments.

@Anteru
Copy link
Copy Markdown
Collaborator

Anteru commented May 29, 2022

Thanks for the quick changes. Feel free to merge.

@jeanas jeanas merged commit cd5cf1a into pygments:master May 29, 2022
@jeanas jeanas deleted the prep branch May 29, 2022 16:48
@birkenfeld
Copy link
Copy Markdown
Member

Very nice simplification, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants