Skip to content

Commit 34810aa

Browse files
committed
Fix stuck-while TODO (this is a do-while loop)
1 parent cb1dfe0 commit 34810aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dfmt/formatter.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,7 @@ private:
18511851
immutable int startingNiBraceDepth = niBraceDepth;
18521852
immutable int startingSBraceDepth = sBraceDepth;
18531853
parenDepth = 0;
1854+
18541855
do
18551856
{
18561857
spaceAfterParens = spaceAfter;
@@ -1873,8 +1874,8 @@ private:
18731874
else
18741875
formatStep();
18751876
}
1876-
// TODO: obviously getting stuck here?
18771877
while (hasCurrent && parenDepth > 0);
1878+
18781879
if (indents.topIs(tok!"!"))
18791880
indents.pop();
18801881
parenDepth = depth;

0 commit comments

Comments
 (0)