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

Add support for do statement bodies that are not block statements #1062

Merged
merged 1 commit into from
May 20, 2013

Conversation

jamesallardice
Copy link

Added support for do-statement bodies that are not block statements in the same way that we can already do with e.g. if or while statements.

The new functionality will obey the curly option and allows the statement body to appear on the same line or the following line (in which case existing indentation rules will apply).

Here is a Stack Overflow question which prompted this patch.

…in the same way that we can already do with e.g. if or while statements.

The new functionality will obey the `curly` option and allows the statement body to appear on the same line or the following line (in which case existing indentation rules will apply)
valueof added a commit that referenced this pull request May 20, 2013
Add support for `do` statement bodies that are not block statements
@valueof valueof merged commit 50483b9 into jshint:master May 20, 2013
@valueof
Copy link
Member

valueof commented May 20, 2013

LGTM.

jugglinmike pushed a commit to jugglinmike/jshint that referenced this pull request Oct 21, 2014
Add support for `do` statement bodies that are not block statements
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.

None yet

2 participants