summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/editor
diff options
context:
space:
mode:
authorHolonProduction <holonproduction@gmail.com>2024-10-14 14:57:16 +0200
committerHolonProduction <holonproduction@gmail.com>2024-10-14 14:57:16 +0200
commite999f11d53695a2158820871c5fadb23d0c93cef (patch)
tree8127891f334c29d360887a5ae5864ab52b9f3c0c /modules/gdscript/editor
parent92e51fca7247c932f95a1662aefc28aca96e8de6 (diff)
downloadredot-engine-e999f11d53695a2158820871c5fadb23d0c93cef.tar.gz
GDScript: Don't highlight unexposed classes
Diffstat (limited to 'modules/gdscript/editor')
-rw-r--r--modules/gdscript/editor/gdscript_highlighter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp
index d765cfa1ea..0b12f2ff76 100644
--- a/modules/gdscript/editor/gdscript_highlighter.cpp
+++ b/modules/gdscript/editor/gdscript_highlighter.cpp
@@ -701,7 +701,9 @@ void GDScriptSyntaxHighlighter::_update_cache() {
List<StringName> types;
ClassDB::get_class_list(&types);
for (const StringName &E : types) {
- class_names[E] = types_color;
+ if (ClassDB::is_class_exposed(E)) {
+ class_names[E] = types_color;
+ }
}
/* User types. */