Skip to content

Commit

Permalink
Fix formatting for 'final switch'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed Mar 9, 2015
1 parent 4590dd4 commit eac7579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfmt.d
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
{
Expand Down

0 comments on commit eac7579

Please sign in to comment.