aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/qmljseditor/qmllsclient.cpp4
-rw-r--r--src/plugins/qmljseditor/qmllsclient.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/qmljseditor/qmllsclient.cpp b/src/plugins/qmljseditor/qmllsclient.cpp
index 47af1aed06c..6a181451903 100644
--- a/src/plugins/qmljseditor/qmllsclient.cpp
+++ b/src/plugins/qmljseditor/qmllsclient.cpp
@@ -197,6 +197,10 @@ QmllsClient::QmllsClient(StdIOClientInterface *interface)
return C_JS_GLOBAL_VAR;
case QmlSemanticTokens::QmlStateName:
return C_QML_STATE_NAME;
+ case QmlSemanticTokens::Field:
+ return C_FIELD;
+ case QmlSemanticTokens::Unknown:
+ return C_TEXT;
default:
break;
}
diff --git a/src/plugins/qmljseditor/qmllsclient.h b/src/plugins/qmljseditor/qmllsclient.h
index ee3d7fb8de8..e7a9492b885 100644
--- a/src/plugins/qmljseditor/qmllsclient.h
+++ b/src/plugins/qmljseditor/qmllsclient.h
@@ -42,14 +42,16 @@ public:
// Additional token types for the extended semantic highlighting
QmlLocalId, // object id within the same file
- QmlExternalId, // object id defined in another file
+ QmlExternalId, // id from a different component, probably accessible via context hierarchy, but not guaranteed
QmlRootObjectProperty, // qml property defined in the parent scopes
QmlScopeObjectProperty, // qml property defined in the current scope
QmlExternalObjectProperty, // qml property defined in the root object of another file
JsScopeVar, // js variable defined in the current file
JsImportVar, // js import name that is imported in the qml file
JsGlobalVar, // js global variables
- QmlStateName // name of a qml state
+ QmlStateName, // name of a qml state,
+ Field, // fields of the property chains
+ Unknown, // used for unresolved token types
};
Q_ENUM(QmlSemanticTokens);
explicit QmllsClient(LanguageClient::StdIOClientInterface *interface);