forked from qt-creator/qt-creator
qmljs: highlight properties with inline qml components
Task-number: QTCREATORBUG-10892 Change-Id: Ifbf5675ab53de54f6f38c07726f5ad400f6ee9d6 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -317,7 +317,12 @@ protected:
|
||||
}
|
||||
if (ast->identifierToken.isValid())
|
||||
addUse(ast->identifierToken, SemanticHighlighter::BindingNameType);
|
||||
scopedAccept(ast, ast->statement);
|
||||
if (ast->statement)
|
||||
scopedAccept(ast, ast->statement);
|
||||
if (ast->binding)
|
||||
// this is not strictly correct for Components, as their context depends from where they
|
||||
// are instantiated, but normally not too bad as approximation
|
||||
scopedAccept(ast, ast->binding);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user