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:
Christian Kamm
2011-10-06 09:53:08 +02:00
parent 21f3a69d4c
commit 909c61247c
4 changed files with 8 additions and 3 deletions

View File

@@ -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 {