forked from qt-creator/qt-creator
Fix highlighting for new QML keywords in Qt 5.15
Change-Id: I2e45321eccb209fa9c9c524d85dc9e08d8bd23fa Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -210,9 +210,11 @@ bool QmlJSHighlighter::maybeQmlKeyword(const QStringRef &text) const
|
|||||||
return true;
|
return true;
|
||||||
else if (ch == QLatin1Char('a') && text == QLatin1String("alias"))
|
else if (ch == QLatin1Char('a') && text == QLatin1String("alias"))
|
||||||
return true;
|
return true;
|
||||||
|
else if (ch == QLatin1Char('c') && text == QLatin1String("component"))
|
||||||
|
return true;
|
||||||
else if (ch == QLatin1Char('s') && text == QLatin1String("signal"))
|
else if (ch == QLatin1Char('s') && text == QLatin1String("signal"))
|
||||||
return true;
|
return true;
|
||||||
else if (ch == QLatin1Char('r') && text == QLatin1String("readonly"))
|
else if (ch == QLatin1Char('r') && (text == QLatin1String("readonly") || text == QLatin1String("required")))
|
||||||
return true;
|
return true;
|
||||||
else if (ch == QLatin1Char('i') && text == QLatin1String("import"))
|
else if (ch == QLatin1Char('i') && text == QLatin1String("import"))
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user