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

Deleted #886

Closed
ghost opened this issue Apr 8, 2017 · 1 comment
Closed

Deleted #886

ghost opened this issue Apr 8, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 8, 2017

Nothing to see here 😄

@ghost ghost changed the title [JavaScript] Regex formatted like a comment [JavaScript] Regex formatted like a comment if it is followed by a multiplication or division operator Apr 8, 2017
@Thom1729
Copy link
Collaborator

Thom1729 commented Apr 9, 2017

It looks like the bug does stem from the architectural limitation I talk about in #885. The fix outlined there should correct this issue as well.

The current mechanism for distinguishing division from regexes is brittle. The correct algorithm is simple: at the “head“ of an expression, a slash is a regex, and at the “tail” a slash is division. But the current syntax is not built to maintain that distinction.

@ghost ghost changed the title [JavaScript] Regex formatted like a comment if it is followed by a multiplication or division operator Deleted Apr 11, 2017
@wbond wbond closed this as completed Apr 18, 2017
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