Commit bbc48690 authored by Christian Kamm's avatar Christian Kamm

QmlJS highlighting: Fix external object property highlight.

Change-Id: Ie9fa9aceb72c40ca2f991f48f70f89e5ab342436
Reviewed-on: http://codereview.qt-project.org/4870Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 6808607c
......@@ -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)
......
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