diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-04-05 23:15:12 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-04-05 23:19:30 +0200 |
commit | 00799fc8c245a09259fda8d17e65428a904402c6 (patch) | |
tree | 70d791a41f668faced75e98884e327df33b7edc3 /editor | |
parent | cc349336e7a099f786c8c281fdceefd7d0bd33ae (diff) |
Add support for type hints in non-default script editor templates
This also refactors template processing to avoid repetition.
This closes #27074.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_settings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 5c257b86db..b9ed63c1b6 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -675,14 +675,14 @@ bool EditorSettings::_save_text_editor_theme(String p_file) { static Dictionary _get_builtin_script_templates() { Dictionary templates; - //No Comments + // No Comments templates["no_comments.gd"] = "extends %BASE%\n" "\n" - "func _ready():\n" + "func _ready()%VOID_RETURN%:\n" "%TS%pass\n"; - //Empty + // Empty templates["empty.gd"] = "extends %BASE%" "\n" |