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,8 +505,11 @@ private:
writeToken();
if (currentIs(tok!"}", false))
tempIndent = 0;
else if (!currentIs(tok!")", false) && !currentIs(tok!"]", false))
else if (!currentIs(tok!")", false) && !currentIs(tok!"]", false)
&& !currentIs(tok!"comment", false))
{
write(" ");
}
}
regenLineBreakHintsIfNecessary(index - 1);
break;

View file

@ -1,3 +1,3 @@
immutable NameId[] namesA = [{"Aacgr", 0x00386}, // GREEK CAPITAL LETTER ALPHA WITH TONOS
{"aacgr", 0x003AC}, // GREEK SMALL LETTER ALPHA WITH TONOS
immutable NameId[] namesA = [{"Aacgr", 0x00386}, // GREEK CAPITAL LETTER ALPHA WITH TONOS
{"aacgr", 0x003AC}, // GREEK SMALL LETTER ALPHA WITH TONOS
];

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
}