Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eiffel regex performance #1658

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

brondsem
Copy link
Contributor

I encountered a certain eiffel file that performed extremely poorly with this regex. (I can share an example if desired, I'm not sure what proper etiquette is).

This change avoids the performance problem, and output is unchanged for the example.e file and a few other .e files I tested. I am not very experienced with eiffel language syntax, but as far as I can tell this is an okay change to make.

Copy link
Member

@birkenfeld birkenfeld left a comment

Choose a reason for hiding this comment

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

This change is totally fine, [^\]%] already includes \n.

@birkenfeld birkenfeld merged commit f57cc9b into pygments:master Feb 12, 2021
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Feb 14, 2021
@Anteru Anteru added this to the 2.8 milestone Feb 14, 2021
@Anteru Anteru self-assigned this Feb 14, 2021
@Anteru Anteru removed the changelog-update Items which need to get mentioned in the changelog label Feb 14, 2021
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.

None yet

3 participants