From c8c595bf1602e479763d105f26932cd3c2bc8964 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Wed, 18 Mar 2015 16:23:44 -0700 Subject: [PATCH] Fix failing test case --- src/dfmt.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfmt.d b/src/dfmt.d index 62a76c7..f7c873f 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -601,7 +601,7 @@ private: else { // Silly hack to format enums better. - if (peekBackIsLiteralOrIdent() || peekBackIs(tok!",", true)) + if (peekBackIsLiteralOrIdent() || (peekBackIs(tok!",", true) && !peekBackIsSlashSlash)) newline(); write("}"); if (index < tokens.length - 1