Commit 521052be authored by Fawzi Mohamed's avatar Fawzi Mohamed

qmljs: highlight properties with inline qml components

Task-number: QTCREATORBUG-10892
Change-Id: Ifbf5675ab53de54f6f38c07726f5ad400f6ee9d6
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 0a611e7c
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment