Closed dmakarov closed 9 years ago
Nice, thanks ! However, small nitpick: this works for Allman, but not for OTBS:
version(Foo) {
// Foo
} else version (Bar) {
// Bar
} else {
// Unsupported
}
The current fix is a bit of a hack. I'll see if I can find a better solution that generally works for multiple choice versions/debug statements.
With this change multiple choice version statements like the following are indented correctly
The same works for
debug
statements. However, ifversion
is not on the same line withelse
, the indentation of the trailingelse
is not correctYet, I believe it's still an improvement. Please, review the PR when you have time.