mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-05-03 08:40:02 +03:00
Fix #106
This commit is contained in:
parent
752674f233
commit
578ded512e
4 changed files with 10 additions and 1 deletions
|
@ -383,6 +383,7 @@ private:
|
||||||
case tok!"enum":
|
case tok!"enum":
|
||||||
indents.push(tok!"enum");
|
indents.push(tok!"enum");
|
||||||
writeToken();
|
writeToken();
|
||||||
|
if (!currentIs(tok!":"))
|
||||||
write(" ");
|
write(" ");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
3
tests/allman/issue0106.d.ref
Normal file
3
tests/allman/issue0106.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
enum : int
|
||||||
|
{
|
||||||
|
}
|
3
tests/issue0106.d
Normal file
3
tests/issue0106.d
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
enum:int
|
||||||
|
{
|
||||||
|
}
|
2
tests/otbs/issue0106.d.ref
Normal file
2
tests/otbs/issue0106.d.ref
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
enum : int {
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue