Commit cf2e3f22 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix highlighting of property types.

Task-number: QTCREATORBUG-6127
Change-Id: Iae5cd6256b2f1e792c3c91eb5915e3f082753e6e
Reviewed-on: http://codereview.qt-project.org/5136

Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 4fdeeb30
......@@ -232,26 +232,42 @@ bool Highlighter::maybeQmlBuiltinType(const QStringRef &text) const
const QChar ch = text.at(0);
if (ch == QLatin1Char('i') && text == QLatin1String("int")) {
return true;
if (ch == QLatin1Char('a') && text == QLatin1String("action")) {
return true;
} else if (ch == QLatin1Char('b') && text == QLatin1String("bool")) {
return true;
} else if (ch == QLatin1Char('c') && text == QLatin1String("color")) {
return true;
} else if (ch == QLatin1Char('d') && text == QLatin1String("date")) {
return true;
} else if (ch == QLatin1Char('d') && text == QLatin1String("double")) {
return true;
} else if (ch == QLatin1Char('e') && text == QLatin1String("enumeration")) {
return true;
} else if (ch == QLatin1Char('f') && text == QLatin1String("font")) {
return true;
} else if (ch == QLatin1Char('i') && text == QLatin1String("int")) {
return true;
} else if (ch == QLatin1Char('l') && text == QLatin1String("list")) {
return true;
} else if (ch == QLatin1Char('p') && text == QLatin1String("point")) {
return true;
} else if (ch == QLatin1Char('r') && text == QLatin1String("real")) {
return true;
} else if (ch == QLatin1Char('s') && text == QLatin1String("string")) {
} else if (ch == QLatin1Char('r') && text == QLatin1String("rect")) {
return true;
} else if (ch == QLatin1Char('u') && text == QLatin1String("url")) {
} else if (ch == QLatin1Char('s') && text == QLatin1String("size")) {
return true;
} else if (ch == QLatin1Char('c') && text == QLatin1String("color")) {
} else if (ch == QLatin1Char('s') && text == QLatin1String("string")) {
return true;
} else if (ch == QLatin1Char('d') && text == QLatin1String("date")) {
} else if (ch == QLatin1Char('t') && text == QLatin1String("time")) {
return true;
} else if (ch == QLatin1Char('v') && text == QLatin1String("var")) {
} else if (ch == QLatin1Char('u') && text == QLatin1String("url")) {
return true;
} else if (ch == QLatin1Char('v') && text == QLatin1String("variant")) {
return true;
} else if (ch == QLatin1Char('v') && text == QLatin1String("vector3d")) {
return true;
} else {
return false;
}
......
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