mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #106
This commit is contained in:
parent
752674f233
commit
578ded512e
4 changed files with 10 additions and 1 deletions
|
@ -383,7 +383,8 @@ private:
|
|||
case tok!"enum":
|
||||
indents.push(tok!"enum");
|
||||
writeToken();
|
||||
write(" ");
|
||||
if (!currentIs(tok!":"))
|
||||
write(" ");
|
||||
break;
|
||||
default:
|
||||
if (index + 1 < tokens.length)
|
||||
|
|
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