mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 22:34:09 +02:00
Fixed string interpolate token preceding character literal
This commit is contained in:
parent
68e711beff
commit
7293f5c253
1 changed files with 12 additions and 9 deletions
|
@ -2118,6 +2118,8 @@ void BfParser::NextToken(int endIdx, bool outerIsInterpolate)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isInterpolate)
|
if (isInterpolate)
|
||||||
|
{
|
||||||
|
if (mLiteral.mTypeCode == BfTypeCode_CharPtr)
|
||||||
{
|
{
|
||||||
auto interpolateExpr = mAlloc->Alloc<BfStringInterpolationExpression>();
|
auto interpolateExpr = mAlloc->Alloc<BfStringInterpolationExpression>();
|
||||||
interpolateExpr->mString = mLiteral.mString;
|
interpolateExpr->mString = mLiteral.mString;
|
||||||
|
@ -2129,6 +2131,7 @@ void BfParser::NextToken(int endIdx, bool outerIsInterpolate)
|
||||||
mSyntaxToken = BfSyntaxToken_GeneratedNode;
|
mSyntaxToken = BfSyntaxToken_GeneratedNode;
|
||||||
mToken = BfToken_None;
|
mToken = BfToken_None;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue