diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-18 20:13:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-18 20:13:50 +0200 |
| commit | de7b6d13ebd48b2ce6f3da21124d843cb35e7c54 (patch) | |
| tree | 17c3590c4433deb6030554c9bdb26d3750f61781 /editor/plugins/script_editor_plugin.cpp | |
| parent | a619a92e3c7d051d5ac9fe49e1fb0a12db72983c (diff) | |
| parent | 5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27 (diff) | |
| download | redot-engine-de7b6d13ebd48b2ce6f3da21124d843cb35e7c54.tar.gz | |
Merge pull request #51627 from mhilbrunner/todo-for-neikeq
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index bd90fa82f2..5c1e557286 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -104,11 +104,7 @@ void EditorStandardSyntaxHighlighter::_update_cache() { List<StringName> types; ClassDB::get_class_list(&types); for (const StringName &E : types) { - String n = E; - if (n.begins_with("_")) { - n = n.substr(1, n.length()); - } - highlighter->add_keyword_color(n, type_color); + highlighter->add_keyword_color(E, type_color); } /* User types. */ |
