You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Make script templates follow the GDScript style guide
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user