* Add handleBreakAndContinueStatementComments to handleEndOfLineComment * Add tests * Add changelog * Update tests * Add more tests * Fix for own line comments * Fix tests * Fix tests * Fix tests * Add unstable tests
146 lines
1.3 KiB
JavaScript
146 lines
1.3 KiB
JavaScript
for(;;) {
|
|
continue
|
|
// comment
|
|
;
|
|
}
|
|
|
|
for (;;) {
|
|
break
|
|
// comment
|
|
;
|
|
}
|
|
|
|
for (const f of []) {
|
|
continue
|
|
// comment
|
|
;
|
|
}
|
|
|
|
for (const f of []) {
|
|
break
|
|
// comment
|
|
;
|
|
}
|
|
|
|
for (const f in {}) {
|
|
continue
|
|
// comment
|
|
;
|
|
}
|
|
|
|
for (const f in {}) {
|
|
break
|
|
// comment
|
|
;
|
|
}
|
|
|
|
while(true) {
|
|
continue
|
|
// comment
|
|
;
|
|
}
|
|
|
|
while (true) {
|
|
break
|
|
// comment
|
|
;
|
|
}
|
|
|
|
do {
|
|
continue
|
|
// comment
|
|
;
|
|
} while(true);
|
|
|
|
|
|
do {
|
|
break
|
|
// comment
|
|
;
|
|
} while(true);
|
|
|
|
label1: for (;;) {
|
|
continue label1
|
|
// comment
|
|
;
|
|
}
|
|
|
|
label2: {
|
|
break label2
|
|
// comment
|
|
;
|
|
};
|
|
|
|
for(;;) {
|
|
continue
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
for (;;) {
|
|
break
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
for (const f of []) {
|
|
continue
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
for (const f of []) {
|
|
break
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
for (const f in {}) {
|
|
continue
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
for (const f in {}) {
|
|
break
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
while(true) {
|
|
continue
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
while (true) {
|
|
break
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
do {
|
|
continue
|
|
/* comment */
|
|
;
|
|
} while(true);
|
|
|
|
|
|
do {
|
|
break
|
|
/* comment */
|
|
;
|
|
} while(true);
|
|
|
|
label1: for (;;) {
|
|
continue label1
|
|
/* comment */
|
|
;
|
|
}
|
|
|
|
label2: {
|
|
break label2
|
|
/* comment */
|
|
;
|
|
};
|