Fix #69
This commit is contained in:
parent
9b6fbfda20
commit
41dc8ef9e9
|
@ -1088,7 +1088,7 @@ private:
|
||||||
}
|
}
|
||||||
else if ((!assumeSorted(astInformation.attributeDeclarationLines)
|
else if ((!assumeSorted(astInformation.attributeDeclarationLines)
|
||||||
.equalRange(current.line).empty) || (currentIs(tok!"identifier")
|
.equalRange(current.line).empty) || (currentIs(tok!"identifier")
|
||||||
&& peekIs(tok!":") && !isBlockHeader(2)))
|
&& peekIs(tok!":") && (!isBlockHeader(2) || peek2Is(tok!"if"))))
|
||||||
{
|
{
|
||||||
tempIndent--;
|
tempIndent--;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
if (0)
|
||||||
|
{
|
||||||
|
L1:
|
||||||
|
if (0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
if (0)
|
||||||
|
{
|
||||||
|
L1:
|
||||||
|
if (0)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue