This commit is contained in:
Hackerpilot 2015-05-13 14:43:42 -07:00
parent 4fff6dc635
commit 070bbcdd1d
4 changed files with 11 additions and 1 deletions

View file

@ -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;

View file

@ -0,0 +1,3 @@
import foo;
public import bar;
import baz;

3
tests/issue0155.d Normal file
View file

@ -0,0 +1,3 @@
import foo;
public import bar;
import baz;

View file

@ -0,0 +1,3 @@
import foo;
public import bar;
import baz;