mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #155
This commit is contained in:
parent
4fff6dc635
commit
070bbcdd1d
4 changed files with 11 additions and 1 deletions
|
@ -301,7 +301,8 @@ private:
|
|||
{
|
||||
break;
|
||||
}
|
||||
else if ((t == tok!"import" && !currentIs(tok!"import") && !currentIs(tok!"}")))
|
||||
else if (t == tok!"import" && !currentIs(tok!"import") && !currentIs(tok!"}")
|
||||
&& !(currentIs(tok!"public") && peekIs(tok!"import")))
|
||||
{
|
||||
simpleNewline();
|
||||
currentLineLength = 0;
|
||||
|
|
3
tests/allman/issue0155.d.ref
Normal file
3
tests/allman/issue0155.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
import foo;
|
||||
public import bar;
|
||||
import baz;
|
3
tests/issue0155.d
Normal file
3
tests/issue0155.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
import foo;
|
||||
public import bar;
|
||||
import baz;
|
3
tests/otbs/issue0155.d.ref
Normal file
3
tests/otbs/issue0155.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
import foo;
|
||||
public import bar;
|
||||
import baz;
|
Loading…
Add table
Add a link
Reference in a new issue