Sarup Banskota 213ad1ed7a [generator] remove parens from break & continue (#5950)
* Remove parens around break and continue

Fixes #5742

* Fix space in doc comment

* Add some tests

* Remove newlines within CommentBlock

* Prevent newline before/after label

* Remove reference to node

* Check for label within startTerminatorless

* Print block instead of single line comment

* Clean up
2017-07-17 09:30:28 -07:00

18 lines
271 B
JavaScript

label1: for (const a of [1, 2, 3]) {
break /*Block comment written in single line */label1;
}
label2: for (const a of [1, 2, 3]) {
break;
/*Block comment written
in multiple lines */
label2;
}
label2: for (const a of [1, 2, 3]) {
break; //foo
label2;
}