mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-29 22:59:57 +03:00
Fix #206
This commit is contained in:
parent
86b61ce2fc
commit
3e5307f081
4 changed files with 25 additions and 0 deletions
|
@ -380,6 +380,8 @@ private:
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (currentIs(tok!"{") && config.dfmt_brace_style == BraceStyle.allman)
|
||||||
|
break;
|
||||||
else if (t == tok!"import" && !currentIs(tok!"import")
|
else if (t == tok!"import" && !currentIs(tok!"import")
|
||||||
&& !currentIs(tok!"}") && !(currentIs(tok!"public")
|
&& !currentIs(tok!"}") && !(currentIs(tok!"public")
|
||||||
&& peekIs(tok!"import")))
|
&& peekIs(tok!"import")))
|
||||||
|
|
8
tests/allman/issue0206.d.ref
Normal file
8
tests/allman/issue0206.d.ref
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
import std.stdio : stderr;
|
||||||
|
|
||||||
|
{
|
||||||
|
a = 10;
|
||||||
|
}
|
||||||
|
}
|
8
tests/issue0206.d
Normal file
8
tests/issue0206.d
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
import std.stdio : stderr;
|
||||||
|
|
||||||
|
{
|
||||||
|
a = 10;
|
||||||
|
}
|
||||||
|
}
|
7
tests/otbs/issue0206.d.ref
Normal file
7
tests/otbs/issue0206.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
unittest {
|
||||||
|
import std.stdio : stderr;
|
||||||
|
|
||||||
|
{
|
||||||
|
a = 10;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue