forked from qt-creator/qt-creator
QmlJS highlighting: Fix external object property highlight.
Change-Id: Ie9fa9aceb72c40ca2f991f48f70f89e5ab342436 Reviewed-on: http://codereview.qt-project.org/4870 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
@@ -240,12 +240,13 @@ protected:
|
||||
type = SemanticHighlighter::ExternalIdType;
|
||||
} else if (scope == chain->rootObjectScope()) {
|
||||
type = SemanticHighlighter::RootObjectPropertyType;
|
||||
} else { // check for this?
|
||||
type = SemanticHighlighter::ExternalObjectPropertyType;
|
||||
}
|
||||
} else { // check for this?
|
||||
type = SemanticHighlighter::ExternalObjectPropertyType;
|
||||
}
|
||||
|
||||
addUse(location, type);
|
||||
if (type != SemanticHighlighter::UnknownType)
|
||||
addUse(location, type);
|
||||
}
|
||||
|
||||
bool visit(UiObjectDefinition *ast)
|
||||
|
||||
Reference in New Issue
Block a user