mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed invalid collapse comment batching
This commit is contained in:
parent
4d73c90dab
commit
85acdda2b4
1 changed files with 14 additions and 5 deletions
|
@ -9212,12 +9212,21 @@ BF_EXPORT const char* BF_CALLTYPE BfCompiler_GetCollapseRegions(BfCompiler* bfCo
|
||||||
}
|
}
|
||||||
|
|
||||||
int anchor = mStartSeriesIdx;
|
int anchor = mStartSeriesIdx;
|
||||||
|
|
||||||
if (!ownsLine)
|
if (!ownsLine)
|
||||||
{
|
{
|
||||||
int nextLine = GetLineStartAfter(anchor);
|
int checkLine = GetLineStartAfter(anchor);
|
||||||
if (nextLine != -1)
|
if (checkLine != -1)
|
||||||
anchor = nextLine;
|
{
|
||||||
|
anchor = checkLine;
|
||||||
|
for (; anchor < mEndSeriesIdx; anchor++)
|
||||||
|
{
|
||||||
|
if (!::isspace((uint8)mParser->mSrc[anchor]))
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Add(anchor, mEndSeriesIdx, mSeriesKind);
|
Add(anchor, mEndSeriesIdx, mSeriesKind);
|
||||||
}
|
}
|
||||||
mStartSeriesIdx = -1;
|
mStartSeriesIdx = -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue