mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
'this' colorization fix
This commit is contained in:
parent
616c899180
commit
3a67152e78
1 changed files with 1 additions and 1 deletions
|
@ -4670,7 +4670,7 @@ BfTypedValue BfExprEvaluator::LookupIdentifier(BfAstNode* refNode, const StringI
|
||||||
mModule->Fail("Local variable is not captured", refNode);
|
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"))
|
if ((closureTypeInst != NULL) && (wantName == "this"))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue