Files
test-repo/tests/comments/before-comma.js
T
Christopher Chedeau f51c5daacb Fix comment detection before comma (#1127)
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
2017-04-10 11:03:35 -07:00

7 lines
84 B
JavaScript

const foo = {
a: 'a' /* comment for this line */,
/* Section B */
b: 'b',
};