mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Better handling of this/base for autocomplete, colorization, goto def
This commit is contained in:
parent
b856f48006
commit
590df7aec7
6 changed files with 71 additions and 20 deletions
|
@ -234,7 +234,10 @@ void BfSourceClassifier::Visit(BfIdentifierNode* identifier)
|
|||
|
||||
Visit(identifier->ToBase());
|
||||
|
||||
SetElementType(identifier, BfSourceElementType_Identifier);
|
||||
if ((identifier->Equals("this")) || (identifier->Equals("base")))
|
||||
SetElementType(identifier, BfSourceElementType_Keyword);
|
||||
else
|
||||
SetElementType(identifier, BfSourceElementType_Identifier);
|
||||
}
|
||||
|
||||
void BfSourceClassifier::Visit(BfQualifiedNameNode* qualifiedName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue