mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +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--;
|
||||
VisitChild(varDecl->mPrecedingComma);
|
||||
}
|
||||
else
|
||||
VisitChild(varDecl->mTypeRef);
|
||||
else if (varDecl->mTypeRef != NULL)
|
||||
{
|
||||
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->mEqualsNode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue