From 5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 17 Aug 2021 15:06:54 +0200 Subject: Remove underscore hacks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry --- editor/plugins/script_editor_plugin.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'editor/plugins/script_editor_plugin.cpp') diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 226a54b966..6793805152 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -104,11 +104,7 @@ void EditorStandardSyntaxHighlighter::_update_cache() { List 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. */ -- cgit v1.2.3