forked from qt-creator/qt-creator
C++: Added highlighting for labels.
Change-Id: I559a3112d2aa0a3c09554f8da8b7917f9aa27944 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -765,6 +765,23 @@ bool CheckSymbols::visit(MemInitializerAST *ast)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CheckSymbols::visit(GotoStatementAST *ast)
|
||||
{
|
||||
if (ast->identifier_token)
|
||||
addUse(ast->identifier_token, SemanticInfo::LabelUse);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CheckSymbols::visit(LabeledStatementAST *ast)
|
||||
{
|
||||
if (ast->label_token)
|
||||
addUse(ast->label_token, SemanticInfo::LabelUse);
|
||||
|
||||
accept(ast->statement);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CheckSymbols::visit(FunctionDefinitionAST *ast)
|
||||
{
|
||||
AST *thisFunction = _astStack.takeLast();
|
||||
|
||||
Reference in New Issue
Block a user