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:
Christian Kamm
2011-09-14 09:59:05 +02:00
parent 6808607c3b
commit bbc48690e8

View File

@@ -240,11 +240,12 @@ protected:
type = SemanticHighlighter::ExternalIdType;
} else if (scope == chain->rootObjectScope()) {
type = SemanticHighlighter::RootObjectPropertyType;
}
} else { // check for this?
type = SemanticHighlighter::ExternalObjectPropertyType;
}
}
if (type != SemanticHighlighter::UnknownType)
addUse(location, type);
}