Fix comment detection before comma #1127

Merged
merged 1 commit into from Apr 10, 2017

Conversation

Projects
None yet
1 participant
@vjeux
Collaborator

vjeux commented Apr 5, 2017

We need to call the skipToLineEnd which skips , after an inline comment. So we have to put it inside of the while loop as you can have many comments, a comma and then many more comments.

Fixes #964

Fix comment detection before comma
We need to call the `skipToLineEnd` which skips `,` after an inline comment. So we have to put it inside of the while loop as you can have many comments, a comma and then many more comments.

Fixes #964

@vjeux vjeux merged commit f51c5da into prettier:master Apr 10, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment