mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #126
This commit is contained in:
parent
e233912a34
commit
aec084e23e
4 changed files with 30 additions and 0 deletions
|
@ -657,6 +657,16 @@ private:
|
|||
case tok!"cast":
|
||||
writeToken();
|
||||
break;
|
||||
case tok!"try":
|
||||
if (peekIs(tok!"{"))
|
||||
writeToken();
|
||||
else
|
||||
{
|
||||
writeToken();
|
||||
indents.push(tok!"try");
|
||||
newline();
|
||||
}
|
||||
break;
|
||||
case tok!"in":
|
||||
case tok!"is":
|
||||
writeToken();
|
||||
|
|
7
tests/allman/issue0126.d.ref
Normal file
7
tests/allman/issue0126.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
|||
unittest
|
||||
{
|
||||
try
|
||||
doStuff();
|
||||
catch (Exception ex)
|
||||
complain(ex.msg);
|
||||
}
|
7
tests/issue0126.d
Normal file
7
tests/issue0126.d
Normal file
|
@ -0,0 +1,7 @@
|
|||
unittest
|
||||
{
|
||||
try
|
||||
doStuff();
|
||||
catch (Exception ex)
|
||||
complain(ex.msg);
|
||||
}
|
6
tests/otbs/issue0126.d.ref
Normal file
6
tests/otbs/issue0126.d.ref
Normal file
|
@ -0,0 +1,6 @@
|
|||
unittest {
|
||||
try
|
||||
doStuff();
|
||||
catch (Exception ex)
|
||||
complain(ex.msg);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue