mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
parent
8f779b33bf
commit
0795a477f1
4 changed files with 8 additions and 1 deletions
|
@ -448,7 +448,7 @@ private:
|
|||
write(" ");
|
||||
else if (prevTokenEndLine == currTokenLine || (t == tok!")" && peekIs(tok!"{")))
|
||||
write(" ");
|
||||
else if (t == tok!"else")
|
||||
else if (peekBackIsOneOf(false, tok!"else", tok!"identifier"))
|
||||
write(" ");
|
||||
else if (canAddNewline || (peekIs(tok!"{") && t == tok!"}"))
|
||||
newline();
|
||||
|
|
2
tests/allman/issue0452.d.ref
Normal file
2
tests/allman/issue0452.d.ref
Normal file
|
@ -0,0 +1,2 @@
|
|||
@nogc //
|
||||
void foo();
|
3
tests/issue0452.d
Normal file
3
tests/issue0452.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
@nogc
|
||||
//
|
||||
void foo();
|
2
tests/otbs/issue0452.d.ref
Normal file
2
tests/otbs/issue0452.d.ref
Normal file
|
@ -0,0 +1,2 @@
|
|||
@nogc //
|
||||
void foo();
|
Loading…
Add table
Add a link
Reference in a new issue