mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-30 07:09:58 +03:00
Merge pull request #437 from dlang-community/issue-436
Fix #436 merged-on-behalf-of: Brian Schott <Hackerpilot@users.noreply.github.com>
This commit is contained in:
commit
54a84bd927
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