This commit is contained in:
Hackerpilot 2015-03-07 23:45:50 -08:00
parent 9374214fdf
commit e73280791a
4 changed files with 18 additions and 3 deletions

View File

@ -505,9 +505,12 @@ private:
writeToken(); writeToken();
if (currentIs(tok!"}", false)) if (currentIs(tok!"}", false))
tempIndent = 0; tempIndent = 0;
else if (!currentIs(tok!")", false) && !currentIs(tok!"]", false)) else if (!currentIs(tok!")", false) && !currentIs(tok!"]", false)
&& !currentIs(tok!"comment", false))
{
write(" "); write(" ");
} }
}
regenLineBreakHintsIfNecessary(index - 1); regenLineBreakHintsIfNecessary(index - 1);
break; break;
case tok!"=": case tok!"=":

6
tests/issue0044.d Normal file
View File

@ -0,0 +1,6 @@
enum Sizeok : int
{
SIZEOKnone, // size of aggregate is not computed yet
SIZEOKdone, // size of aggregate is set correctly
SIZEOKfwd, // error in computing size of aggregate
}

6
tests/issue0044.d.ref Normal file
View File

@ -0,0 +1,6 @@
enum Sizeok : int
{
SIZEOKnone, // size of aggregate is not computed yet
SIZEOKdone, // size of aggregate is set correctly
SIZEOKfwd, // error in computing size of aggregate
}