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

Extremely long run time with FortranLexer #2194

Closed
mbraakhekke opened this issue Jul 29, 2022 · 1 comment
Closed

Extremely long run time with FortranLexer #2194

mbraakhekke opened this issue Jul 29, 2022 · 1 comment

Comments

@mbraakhekke
Copy link

The following lines take an inordinate amount of time to process with the FortranLexer:

foobar = 'foo'//'\'//'bar'
!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

See demo. The time increases with each added slash in the comment line.

As discussed in #1508, this is likely a catastrophic backtracking problem. The problem is linked to the issue with backslashes in string constants discussed in #1508, since replacing '\' with '\\' in the first line appears to result in a normal run time.

@jeanas
Copy link
Contributor

jeanas commented Aug 14, 2022

Fixed in d9278a5, thanks!

@jeanas jeanas closed this as completed Aug 14, 2022
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

No branches or pull requests

2 participants