Files
test-repo/tests/format/js/switch/comments.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
568 B
JavaScript
Raw Normal View History

switch (true) {
case true:
// Good luck getting here
case false:
}
switch (true) {
case true:
// Good luck getting here
case false:
}
switch(x) {
case x: {
}
// other
case y: {
}
}
switch(x) {
default: // comment
break;
}
switch(x) {
default: // comment
{break;}
}
switch(x) {
default: {// comment
break;}
}
switch(x) {
default: /* comment */
break;
}
switch(x) {
default: /* comment */
{break;}
}
switch(x) {
default: {/* comment */
break;}
}
switch(x) {
default: /* comment */ {
break;}
}