Skip to content

Bugfix for an apparent infinite loop in grammar. - #163

Merged
1st1 merged 1 commit into
masterfrom
bug150
Oct 4, 2018
Merged

Bugfix for an apparent infinite loop in grammar.#163
1st1 merged 1 commit into
masterfrom
bug150

Conversation

@vpetrovykh

Copy link
Copy Markdown
Contributor

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

@elprans elprans left a comment

Copy link
Copy Markdown
Member

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