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

Some sed code take very long time to be highlighted #2057

Open
mikecat opened this issue Jun 23, 2024 · 0 comments
Open

Some sed code take very long time to be highlighted #2057

mikecat opened this issue Jun 23, 2024 · 0 comments
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@mikecat
Copy link

mikecat commented Jun 23, 2024

Name of the lexer

sed

Code sample

:tthousand
s/d\(.*\)0\(...\)$/\11\2/
s/d\(.*\)1\(...\)$/\12\2/
s/d\(.*\)2\(...\)$/\13\2/
s/d\(.*\)3\(...\)$/\14\2/
tthousand

Additional context

When I tried this code on Rouge, it took about 7 seconds to be highlighted.

Adding more s/d\(.*\)3\(...\)$/\14\2/ lines look making it take much more time. (I added one more line and did't get response in several minutes)

@mikecat mikecat added the bugfix-request A request for a bugfix to be developed. label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

No branches or pull requests

1 participant