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

Removes empty captures #303

Merged
merged 2 commits into from
Feb 6, 2017
Merged

Removes empty captures #303

merged 2 commits into from
Feb 6, 2017

Conversation

arcanis
Copy link
Contributor

@arcanis arcanis commented Jan 21, 2017

These rules are causing issues with both first-mate and vscode-textmate, because they match empty strings and can cause infinite loops. The trailing | are unnecessary and are not present in the other rules, so I just had to remove them altogether.

@arcanis
Copy link
Contributor Author

arcanis commented Jan 31, 2017

Ping @zertosh ? Other people have been hit by this issue in the linked issue. I understand that you're rewriting the grammar anyway, but this PR should be easily reviewable, and fix a major issue (major in that it completely prevents the grammar from being used at all :().

@rattrayalex
Copy link

+1 I've encountered this as well.

See also: atom/first-mate#77 and microsoft/vscode-textmate#9 where others have encountered this too.

@zertosh zertosh merged commit 9c7d32f into babel:master Feb 6, 2017
@zertosh
Copy link
Member

zertosh commented Feb 6, 2017

Thanks!

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