mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-29 06:39:55 +03:00
Fix #436
This commit is contained in:
parent
b34acc9f26
commit
b4e97d3381
4 changed files with 15 additions and 0 deletions
|
@ -232,6 +232,18 @@ private:
|
||||||
{
|
{
|
||||||
writeToken();
|
writeToken();
|
||||||
write(" ");
|
write(" ");
|
||||||
|
while (index < tokens.length)
|
||||||
|
{
|
||||||
|
if (currentIs(tok!"("))
|
||||||
|
formatLeftParenOrBracket();
|
||||||
|
else if (currentIs(tok!")"))
|
||||||
|
{
|
||||||
|
formatRightParen();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
writeToken();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (((isBlockHeader() || currentIs(tok!"version")) && peekIs(tok!"("))
|
else if (((isBlockHeader() || currentIs(tok!"version")) && peekIs(tok!"("))
|
||||||
|| (currentIs(tok!"debug") && peekIs(tok!"{")))
|
|| (currentIs(tok!"debug") && peekIs(tok!"{")))
|
||||||
|
|
1
tests/allman/issue0436.d.ref
Normal file
1
tests/allman/issue0436.d.ref
Normal file
|
@ -0,0 +1 @@
|
||||||
|
extern (Objective-C) int a;
|
1
tests/issue0436.d
Normal file
1
tests/issue0436.d
Normal file
|
@ -0,0 +1 @@
|
||||||
|
extern (Objective-C) int a;
|
1
tests/otbs/issue0436.d.ref
Normal file
1
tests/otbs/issue0436.d.ref
Normal file
|
@ -0,0 +1 @@
|
||||||
|
extern (Objective-C) int a;
|
Loading…
Add table
Add a link
Reference in a new issue