1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

'this' colorization fix

This commit is contained in:
Brian Fiete 2025-03-17 21:40:21 -04:00
parent 616c899180
commit 3a67152e78

View file

@ -4670,7 +4670,7 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
mModule->Fail("Local variable is not captured", refNode);
}
if ((varSkipCountLeft == 0) && (varDecl != NULL))
if ((varSkipCountLeft == 0) && (varDecl != NULL) && (!varDecl->mIsThis))
{
if ((closureTypeInst != NULL) && (wantName == "this"))
break;