mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-29 06:39:55 +03:00
Fix #241
This commit is contained in:
parent
049b151bac
commit
d6861cc5a2
4 changed files with 16 additions and 0 deletions
|
@ -943,6 +943,11 @@ private:
|
||||||
newline();
|
newline();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case tok!"body":
|
||||||
|
if (!peekBackIs(tok!"}"))
|
||||||
|
newline();
|
||||||
|
writeToken();
|
||||||
|
break;
|
||||||
case tok!"in":
|
case tok!"in":
|
||||||
immutable isContract = astInformation.contractLocations.canFindIndex(current.index);
|
immutable isContract = astInformation.contractLocations.canFindIndex(current.index);
|
||||||
if (isContract)
|
if (isContract)
|
||||||
|
|
4
tests/allman/issue0241.d.ref
Normal file
4
tests/allman/issue0241.d.ref
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
void round()
|
||||||
|
body
|
||||||
|
{
|
||||||
|
}
|
4
tests/issue0241.d
Normal file
4
tests/issue0241.d
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
void round()
|
||||||
|
body
|
||||||
|
{
|
||||||
|
}
|
3
tests/otbs/issue0241.d.ref
Normal file
3
tests/otbs/issue0241.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
void round()
|
||||||
|
body {
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue