blob: 5465ab23a92507a70d19fe24275d6c9a06d0849e [file] [edit]
40 columns |
>>> Before first operand.
if (obj case // c
pattern || otherPattern) {;}
<<< 3.7
if (obj
case // c
pattern || otherPattern) {
;
}
>>> Before first operand of nested.
if (obj case pattern || // c
otherPattern && thirdLongPattern) {;}
<<< 3.7
if (obj
case pattern || // c
otherPattern &&
thirdLongPattern) {
;
}
>>> After left logic operand.
### Looks weird, but user should move comment.
if (obj case pattern // c
|| otherPattern) {;}
<<< 3.7
if (obj
case pattern // c
||
otherPattern) {
;
}
>>> After logic operator.
if (obj case pattern || // c
otherPattern) {;}
<<< 3.7
if (obj
case pattern || // c
otherPattern) {
;
}
>>> After right logic operand.
if (obj case somePattern || otherPattern // c
) {;}
<<< 3.7
if (obj
case somePattern ||
otherPattern // c
) {
;
}