This commit is contained in:
Hackerpilot 2015-03-08 18:33:59 -07:00
parent 9b6fbfda20
commit 41dc8ef9e9
3 changed files with 21 additions and 1 deletions

View File

@ -1088,7 +1088,7 @@ private:
}
else if ((!assumeSorted(astInformation.attributeDeclarationLines)
.equalRange(current.line).empty) || (currentIs(tok!"identifier")
&& peekIs(tok!":") && !isBlockHeader(2)))
&& peekIs(tok!":") && (!isBlockHeader(2) || peek2Is(tok!"if"))))
{
tempIndent--;
}

10
tests/issue0069.d Normal file
View File

@ -0,0 +1,10 @@
unittest
{
if (0)
{
L1:
if (0)
{
}
}
}

10
tests/issue0069.d.ref Normal file
View File

@ -0,0 +1,10 @@
unittest
{
if (0)
{
L1:
if (0)
{
}
}
}