mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed 'const' generic arg parsing with >>
This commit is contained in:
parent
c4b7cc58a1
commit
a412452bac
1 changed files with 3 additions and 2 deletions
|
@ -541,7 +541,7 @@ bool BfReducer::IsTypeReference(BfAstNode* checkNode, BfToken successToken, int*
|
||||||
if (nextNode != NULL)
|
if (nextNode != NULL)
|
||||||
{
|
{
|
||||||
mVisitorPos.mReadPos = checkIdx + 1;
|
mVisitorPos.mReadPos = checkIdx + 1;
|
||||||
auto expr = CreateExpression(nextNode, BfReducer::CreateExprFlags_BreakOnRChevron);
|
auto expr = CreateExpression(nextNode, CreateExprFlags_BreakOnRChevron);
|
||||||
int endExprReadPos = mVisitorPos.mReadPos;
|
int endExprReadPos = mVisitorPos.mReadPos;
|
||||||
mVisitorPos.mReadPos = prevReadPos;
|
mVisitorPos.mReadPos = prevReadPos;
|
||||||
|
|
||||||
|
@ -2345,7 +2345,8 @@ BfExpression* BfReducer::CreateExpression(BfAstNode* node, CreateExprFlags creat
|
||||||
{
|
{
|
||||||
BfToken token = tokenNode->GetToken();
|
BfToken token = tokenNode->GetToken();
|
||||||
|
|
||||||
if (((createExprFlags & CreateExprFlags_BreakOnRChevron) != 0) && (token == BfToken_RChevron))
|
if (((createExprFlags & CreateExprFlags_BreakOnRChevron) != 0) &&
|
||||||
|
((token == BfToken_RChevron) || (token == BfToken_RDblChevron)))
|
||||||
return exprLeft;
|
return exprLeft;
|
||||||
|
|
||||||
if ((token == BfToken_DblPlus) || (token == BfToken_DblMinus))
|
if ((token == BfToken_DblPlus) || (token == BfToken_DblMinus))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue