Skip to content

Commit e999f11

Browse files
GDScript: Don't highlight unexposed classes
1 parent 92e51fc commit e999f11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/gdscript/editor/gdscript_highlighter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,9 @@ void GDScriptSyntaxHighlighter::_update_cache() {
701701
List<StringName> types;
702702
ClassDB::get_class_list(&types);
703703
for (const StringName &E : types) {
704-
class_names[E] = types_color;
704+
if (ClassDB::is_class_exposed(E)) {
705+
class_names[E] = types_color;
706+
}
705707
}
706708

707709
/* User types. */

0 commit comments

Comments
 (0)