mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #95
This commit is contained in:
parent
1ef17c5d78
commit
1748516044
3 changed files with 14 additions and 1 deletions
|
@ -982,7 +982,7 @@ private:
|
|||
indents.pop();
|
||||
indents.push(tok!"{");
|
||||
if (index == 1 || peekBackIs(tok!":") || peekBackIs(tok!"{")
|
||||
|| peekBackIs(tok!"}") || peekBackIs(tok!")"))
|
||||
|| peekBackIs(tok!"}") || peekBackIs(tok!")") || peekBackIs(tok!";"))
|
||||
{
|
||||
indentLevel = indents.indentSize - 1;
|
||||
}
|
||||
|
|
6
tests/issue0095.d
Normal file
6
tests/issue0095.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
unittest
|
||||
{
|
||||
if (!fdmatch)
|
||||
goto Lfd;
|
||||
{}
|
||||
}
|
7
tests/issue0095.d.ref
Normal file
7
tests/issue0095.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
|||
unittest
|
||||
{
|
||||
if (!fdmatch)
|
||||
goto Lfd;
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue