forked from qt-creator/qt-creator
QmlJS: Allow 'var' property type.
It's new in Qt 5. Change-Id: If3e670d42528ca6996ae280d96077ce744d281d9 Reviewed-on: http://codereview.qt-project.org/6121 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -266,6 +266,8 @@ bool Highlighter::maybeQmlBuiltinType(const QStringRef &text) const
|
||||
return true;
|
||||
} else if (ch == QLatin1Char('v') && text == QLatin1String("variant")) {
|
||||
return true;
|
||||
} else if (ch == QLatin1Char('v') && text == QLatin1String("var")) {
|
||||
return true;
|
||||
} else if (ch == QLatin1Char('v') && text == QLatin1String("vector3d")) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user