diff --git a/src/dfmt.d b/src/dfmt.d index 5edd239..c3287b5 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -297,7 +297,7 @@ private: writeToken(); write(" "); writeParens(false); - if (currentIs(tok!"switch")) + if (currentIs(tok!"switch") || (currentIs(tok!"final") && peekIs(tok!"switch"))) write(" "); else if (currentIs(tok!"comment")) {