mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fix for lambda parsing
This commit is contained in:
parent
c04778ec5a
commit
aaf3eb86f6
1 changed files with 5 additions and 2 deletions
|
@ -1984,8 +1984,11 @@ BfExpression* BfReducer::CreateExpression(BfAstNode* node, CreateExprFlags creat
|
||||||
isLambda = true;
|
isLambda = true;
|
||||||
if (auto innerToken = BfNodeDynCast<BfTokenNode>(mVisitorPos.GetNext()))
|
if (auto innerToken = BfNodeDynCast<BfTokenNode>(mVisitorPos.GetNext()))
|
||||||
{
|
{
|
||||||
// Specifically we're looking for a (function ...) cast, but any token here means it's not a lambda
|
if (innerToken->mToken != BfToken_RParen)
|
||||||
isLambda = false;
|
{
|
||||||
|
// Specifically we're looking for a (function ...) cast, but any token besides a close here means it's not a lambda
|
||||||
|
isLambda = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isLambda)
|
if (isLambda)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue