mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #212
This commit is contained in:
parent
75c3278a32
commit
65a55493da
4 changed files with 12 additions and 1 deletions
|
@ -885,7 +885,7 @@ private:
|
|||
write(" ");
|
||||
indents.push(tok!"enum");
|
||||
writeToken();
|
||||
if (!currentIs(tok!":"))
|
||||
if (!currentIs(tok!":") && !currentIs(tok!"{"))
|
||||
write(" ");
|
||||
}
|
||||
break;
|
||||
|
|
4
tests/allman/issue0212.d.ref
Normal file
4
tests/allman/issue0212.d.ref
Normal file
|
@ -0,0 +1,4 @@
|
|||
enum
|
||||
{
|
||||
x = 3
|
||||
}
|
4
tests/issue0212.d
Normal file
4
tests/issue0212.d
Normal file
|
@ -0,0 +1,4 @@
|
|||
enum
|
||||
{
|
||||
x = 3
|
||||
}
|
3
tests/otbs/issue0212.d.ref
Normal file
3
tests/otbs/issue0212.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
enum {
|
||||
x = 3
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue