From eac7579e7cb8af3c58eded1d9ea74b9c8a9464a5 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 8 Mar 2015 19:37:17 -0700 Subject: [PATCH] Fix formatting for 'final switch' --- src/dfmt.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfmt.d b/src/dfmt.d index 5edd239b..c3287b5f 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")) {