mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #219
This commit is contained in:
parent
98f443d3f1
commit
268657831b
4 changed files with 19 additions and 0 deletions
|
@ -563,6 +563,8 @@ private:
|
|||
if (currentIs(tok!"("))
|
||||
{
|
||||
writeParens(false);
|
||||
if (tokens[index].type == tok!"{")
|
||||
return;
|
||||
if (index < tokens.length && tokens[index - 1].line < tokens[index].line)
|
||||
newline();
|
||||
else
|
||||
|
|
6
tests/allman/issue0219.d.ref
Normal file
6
tests/allman/issue0219.d.ref
Normal file
|
@ -0,0 +1,6 @@
|
|||
@OneOf("group1")
|
||||
{
|
||||
JSONValue[string] fred;
|
||||
bool mertz;
|
||||
bool ethel;
|
||||
}
|
6
tests/issue0219.d
Normal file
6
tests/issue0219.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
@OneOf("group1")
|
||||
{
|
||||
JSONValue[string] fred;
|
||||
bool mertz;
|
||||
bool ethel;
|
||||
}
|
5
tests/otbs/issue0219.d.ref
Normal file
5
tests/otbs/issue0219.d.ref
Normal file
|
@ -0,0 +1,5 @@
|
|||
@OneOf("group1") {
|
||||
JSONValue[string] fred;
|
||||
bool mertz;
|
||||
bool ethel;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue