mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +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 (mLiteral.mTypeCode == BfTypeCode_CharPtr)
|
||||
{
|
||||
auto interpolateExpr = mAlloc->Alloc<BfStringInterpolationExpression>();
|
||||
interpolateExpr->mString = mLiteral.mString;
|
||||
|
@ -2129,6 +2131,7 @@ void BfParser::NextToken(int endIdx, bool outerIsInterpolate)
|
|||
mSyntaxToken = BfSyntaxToken_GeneratedNode;
|
||||
mToken = BfToken_None;
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue