This commit is contained in:
Hackerpilot 2015-03-13 02:01:18 -07:00
parent 1ef17c5d78
commit 1748516044
3 changed files with 14 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,6 @@
unittest
{
if (!fdmatch)
goto Lfd;
{}
}

7
tests/issue0095.d.ref Normal file
View file

@ -0,0 +1,7 @@
unittest
{
if (!fdmatch)
goto Lfd;
{
}
}