Fix regression

This commit is contained in:
Hackerpilot 2015-09-18 10:46:20 -07:00
parent a9426cb44f
commit 46db867c41
1 changed files with 5 additions and 8 deletions

View File

@ -789,14 +789,11 @@ private:
else if (!peekBackIsOneOf(false, tok!"(", tok!",", tok!"!"))
write(" ");
writeToken();
if (!isContract)
{
if (config.dfmt_brace_style == BraceStyle.allman)
immutable isFunctionLit = astInformation.funLitStartLocations.canFindIndex(current.index);
if (isFunctionLit && config.dfmt_brace_style == BraceStyle.allman)
newline();
else
else if (!isContract)
write(" ");
}
break;
case tok!"is":
if (!peekBackIsOneOf(false, tok!"!", tok!"(", tok!",", tok!"}", tok!"=",