Fix stuck-while TODO (this is a do-while loop)

This commit is contained in:
Jan Jurzitza 2020-04-03 09:19:24 +02:00
parent cb1dfe091f
commit 34810aa928
1 changed files with 2 additions and 1 deletions

View File

@ -1851,6 +1851,7 @@ private:
immutable int startingNiBraceDepth = niBraceDepth; immutable int startingNiBraceDepth = niBraceDepth;
immutable int startingSBraceDepth = sBraceDepth; immutable int startingSBraceDepth = sBraceDepth;
parenDepth = 0; parenDepth = 0;
do do
{ {
spaceAfterParens = spaceAfter; spaceAfterParens = spaceAfter;
@ -1873,8 +1874,8 @@ private:
else else
formatStep(); formatStep();
} }
// TODO: obviously getting stuck here?
while (hasCurrent && parenDepth > 0); while (hasCurrent && parenDepth > 0);
if (indents.topIs(tok!"!")) if (indents.topIs(tok!"!"))
indents.pop(); indents.pop();
parenDepth = depth; parenDepth = depth;