mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Multi-variable for
formatting fix
This commit is contained in:
parent
037cb39240
commit
41ab77d22d
1 changed files with 11 additions and 2 deletions
|
@ -1712,8 +1712,17 @@ void BfPrinter::Visit(BfVariableDeclaration* varDecl)
|
||||||
mNextStateModify.mWantNewLineIdx--;
|
mNextStateModify.mWantNewLineIdx--;
|
||||||
VisitChild(varDecl->mPrecedingComma);
|
VisitChild(varDecl->mPrecedingComma);
|
||||||
}
|
}
|
||||||
else
|
else if (varDecl->mTypeRef != NULL)
|
||||||
VisitChild(varDecl->mTypeRef);
|
{
|
||||||
|
if (varDecl->mTypeRef->mSrcStart >= varDecl->mSrcStart)
|
||||||
|
{
|
||||||
|
VisitChild(varDecl->mTypeRef);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// May be from a `for (int k = 1, m = 0; k <= 20; k++)`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VisitChildWithPrecedingSpace(varDecl->mNameNode);
|
VisitChildWithPrecedingSpace(varDecl->mNameNode);
|
||||||
VisitChildWithPrecedingSpace(varDecl->mEqualsNode);
|
VisitChildWithPrecedingSpace(varDecl->mEqualsNode);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue