Skip to content

Bugfix for an apparent infinite loop in grammar. #163

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

Merged
merged 1 commit into from
Oct 4, 2018
Merged

Bugfix for an apparent infinite loop in grammar. #163

merged 1 commit into from
Oct 4, 2018

Conversation

vpetrovykh
Copy link
Member

Elvis, can you please verify that this fix works for you, too?

This is a case of semantically equivalent regex not being computationally equivalent. The issue also relates to how negative character classes (e.g. [^abc]) are treated. In the end I had to replace something of the form (A | B)* with A* (BA*)* to avoid grinding the regex engine to a halt.

Issue #150.

This is a case of semantically equivalent regex not being
computationally equivalent. The issue also relates to how negative
character classes (e.g. `[^abc]`) are treated. In the end I had to
replace something of the form `(A | B)*` with `A* (BA*)*` to avoid
grinding the regex engine to a halt.

Issue #150.
@vpetrovykh vpetrovykh requested a review from elprans October 3, 2018 01:26
Copy link
Member

@elprans elprans left a comment

Choose a reason for hiding this comment

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

I confirm that this fixes MagicPython in VSCode for me.

@1st1 1st1 merged commit 1b72e04 into master Oct 4, 2018
@1st1 1st1 deleted the bug150 branch October 4, 2018 19:56
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