summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorMax Hilbrunner <m.hilbrunner@gmail.com>2021-08-17 15:06:54 +0200
committerMax Hilbrunner <m.hilbrunner@gmail.com>2021-08-17 16:10:28 +0200
commit5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27 (patch)
tree08f24b87781f70b0ffa849bb771d0b644123379f /editor/plugins/script_editor_plugin.cpp
parent81f7d1890baf0481f65100aa0efa875da0a0fa30 (diff)
downloadredot-engine-5161c97c9c7d6c1f6e4d0264fd9a9d9ea7f7be27.tar.gz
Remove underscore hacks
Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp6
1 files changed, 1 insertions, 5 deletions
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<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. */