mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-05-06 18:55:57 +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.pop();
|
||||||
indents.push(tok!"{");
|
indents.push(tok!"{");
|
||||||
if (index == 1 || peekBackIs(tok!":") || peekBackIs(tok!"{")
|
if (index == 1 || peekBackIs(tok!":") || peekBackIs(tok!"{")
|
||||||
|| peekBackIs(tok!"}") || peekBackIs(tok!")"))
|
|| peekBackIs(tok!"}") || peekBackIs(tok!")") || peekBackIs(tok!";"))
|
||||||
{
|
{
|
||||||
indentLevel = indents.indentSize - 1;
|
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