1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-28 16:07:14 +00:00

GDScript: Don't highlight unexposed classes

This commit is contained in:
HolonProduction
2024-10-14 14:57:16 +02:00
parent 92e51fca72
commit e999f11d53

View File

@@ -701,8 +701,10 @@ void GDScriptSyntaxHighlighter::_update_cache() {
List<StringName> types; List<StringName> types;
ClassDB::get_class_list(&types); ClassDB::get_class_list(&types);
for (const StringName &E : types) { for (const StringName &E : types) {
if (ClassDB::is_class_exposed(E)) {
class_names[E] = types_color; class_names[E] = types_color;
} }
}
/* User types. */ /* User types. */
const Color usertype_color = EDITOR_GET("text_editor/theme/highlighting/user_type_color"); const Color usertype_color = EDITOR_GET("text_editor/theme/highlighting/user_type_color");