mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
This commit is contained in:
parent
46669f8073
commit
699ae10458
6 changed files with 22 additions and 5 deletions
|
@ -1271,7 +1271,7 @@ const pure @safe @nogc:
|
|||
break;
|
||||
if (depths[i] < d)
|
||||
break;
|
||||
if (!braces && tokens[i].type == tok!";")
|
||||
if (!braces && (tokens[i].type == tok!";" || tokens[i].type == tok!"{"))
|
||||
break;
|
||||
i++;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
class Foo(T) : FirstInterfaceWithVeryLongName,
|
||||
SecondInterfaceWithVeryLongName if (is(T : Bar))
|
||||
class Foo(T) : FirstInterfaceWithVeryLongName, SecondInterfaceWithVeryLongName if (is(T : Bar))
|
||||
{
|
||||
void foo()
|
||||
{
|
||||
|
|
7
tests/allman/issue0172.d.ref
Normal file
7
tests/allman/issue0172.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
|||
final class FormatVisitor : ASTVisitor
|
||||
{
|
||||
this(ASTInformation* astInformation)
|
||||
{
|
||||
this.astInformation = astInformation;
|
||||
}
|
||||
}
|
7
tests/issue0172.d
Normal file
7
tests/issue0172.d
Normal file
|
@ -0,0 +1,7 @@
|
|||
final class FormatVisitor : ASTVisitor
|
||||
{
|
||||
this(ASTInformation* astInformation)
|
||||
{
|
||||
this.astInformation = astInformation;
|
||||
}
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
class Foo(T) : FirstInterfaceWithVeryLongName,
|
||||
SecondInterfaceWithVeryLongName if (is(T : Bar)) {
|
||||
class Foo(T) : FirstInterfaceWithVeryLongName, SecondInterfaceWithVeryLongName if (is(T : Bar)) {
|
||||
void foo() {
|
||||
}
|
||||
}
|
||||
|
|
5
tests/otbs/issue0172.d.ref
Normal file
5
tests/otbs/issue0172.d.ref
Normal file
|
@ -0,0 +1,5 @@
|
|||
final class FormatVisitor : ASTVisitor {
|
||||
this(ASTInformation* astInformation) {
|
||||
this.astInformation = astInformation;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue