diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2022-03-27 23:00:02 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2022-03-28 01:32:12 -0300 |
commit | 42df9ed0599154cd4894cbcf0c6d9761c5ab3a4e (patch) | |
tree | cd54171a269f5280bd7480ed7b571c243029d13b /modules/gdscript/gdscript_editor.cpp | |
parent | a0071029f2c4ec006d3443f25aa77e2c2c7a1ece (diff) | |
download | redot-engine-42df9ed0599154cd4894cbcf0c6d9761c5ab3a4e.tar.gz |
Make script templates follow the GDScript style guide
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 350962ba1b..c06137c3cc 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -68,14 +68,21 @@ Ref<Script> GDScriptLanguage::make_template(const String &p_template, const Stri if (!EDITOR_GET("text_editor/completion/add_type_hints")) { processed_template = processed_template.replace(": int", "") .replace(": String", "") + .replace(": Array[String]", "") .replace(": float", "") .replace(":=", "=") + .replace(" -> String", "") + .replace(" -> int", "") .replace(" -> void", ""); } #else processed_template = processed_template.replace(": int", "") .replace(": String", "") + .replace(": Array[String]", "") .replace(": float", "") + .replace(":=", "=") + .replace(" -> String", "") + .replace(" -> int", "") .replace(" -> void", ""); #endif |