Fix #158
This commit is contained in:
parent
8889dff850
commit
6c3c4b8d00
|
@ -726,6 +726,8 @@ private:
|
||||||
write(" ");
|
write(" ");
|
||||||
break;
|
break;
|
||||||
case tok!"enum":
|
case tok!"enum":
|
||||||
|
if (peekBackIs(tok!"identifier"))
|
||||||
|
write(" ");
|
||||||
indents.push(tok!"enum");
|
indents.push(tok!"enum");
|
||||||
writeToken();
|
writeToken();
|
||||||
if (!currentIs(tok!":"))
|
if (!currentIs(tok!":"))
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
@Foo enum Bar
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@foo class Baz
|
||||||
|
{
|
||||||
|
}
|
|
@ -0,0 +1,2 @@
|
||||||
|
@Foo enum Bar {}
|
||||||
|
@foo class Baz {}
|
|
@ -0,0 +1,5 @@
|
||||||
|
@Foo enum Bar {
|
||||||
|
}
|
||||||
|
|
||||||
|
@foo class Baz {
|
||||||
|
}
|
Loading…
Reference in New Issue