This commit is contained in:
Hackerpilot 2015-03-15 04:30:55 -07:00
parent 752674f233
commit 578ded512e
4 changed files with 10 additions and 1 deletions

View File

@ -383,7 +383,8 @@ private:
case tok!"enum": case tok!"enum":
indents.push(tok!"enum"); indents.push(tok!"enum");
writeToken(); writeToken();
write(" "); if (!currentIs(tok!":"))
write(" ");
break; break;
default: default:
if (index + 1 < tokens.length) if (index + 1 < tokens.length)

View File

@ -0,0 +1,3 @@
enum : int
{
}

3
tests/issue0106.d Normal file
View File

@ -0,0 +1,3 @@
enum:int
{
}

View File

@ -0,0 +1,2 @@
enum : int {
}