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

Prevent incorrect wrapping of return statements. #751

Closed
wants to merge 3 commits into from

Conversation

glennimoss
Copy link
Contributor

There cannot be a newline between the return keyword and the start of
the return value expression.

There cannot be a newline between the return keyword and the start of
the return value expression.
@bitwiseman
Copy link
Member

This looks like a great change!
Some minor fixup needed before we can merge it.

@@ -415,6 +415,7 @@
return out;
}

var _newline_restricted_tokens = /^(continue|break|return|throw)/;
Copy link
Member

Choose a reason for hiding this comment

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

This should go with the other tokens and reserved word lists not buried in here.

@bitwiseman bitwiseman added this to the v1.6.0 milestone Jan 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants