mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #73
This commit is contained in:
parent
8ab3b5c9f7
commit
4b7e37c1da
3 changed files with 14 additions and 1 deletions
|
@ -290,7 +290,7 @@ private:
|
|||
write(" ");
|
||||
writeParens(true);
|
||||
}
|
||||
else if (isBlockHeader())
|
||||
else if (isBlockHeader() && peekIs(tok!"(", false))
|
||||
{
|
||||
if (current.type == tok!"if")
|
||||
ifIndents.push(tempIndent);
|
||||
|
|
6
tests/issue0073.d
Normal file
6
tests/issue0073.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
void presumed (out uint column) @trusted {
|
||||
CXString cxstring;
|
||||
|
||||
clang_getPresumedLocation(cx, &cxstring, &line, &column);
|
||||
filename = toD(cxstring);
|
||||
}
|
7
tests/issue0073.d.ref
Normal file
7
tests/issue0073.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
|||
void presumed(out uint column) @trusted
|
||||
{
|
||||
CXString cxstring;
|
||||
|
||||
clang_getPresumedLocation(cx, &cxstring, &line, &column);
|
||||
filename = toD(cxstring);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue