/* gdscript_editor.cpp */ #include "gdscript.h" #include "core/config/engine.h" #include "core/config/project_settings.h" #include "core/global_constants.h" #include "core/os/file_access.h" #include "gdscript_compiler.h" void GDScriptLanguage::get_comment_delimiters(List *p_delimiters) const { p_delimiters->push_back("#"); } void GDScriptLanguage::get_string_delimiters(List *p_delimiters) const { p_delimiters->push_back("\"\"\" \"\"\""); p_delimiters->push_back("\" \""); p_delimiters->push_back("' '"); } String GDScriptLanguage::_get_processed_template(const String &p_template, const String &p_base_class_name) const { String processed_template = p_template; processed_template = processed_template.replace("%INT_TYPE%", ""); processed_template = processed_template.replace("%STRING_TYPE%", ""); processed_template = processed_template.replace("%FLOAT_TYPE%", ""); processed_template = processed_template.replace("%VOID_RETURN%", ""); processed_template = processed_template.replace("%BASE%", p_base_class_name); processed_template = processed_template.replace("%TS%", _get_indentation()); return processed_template; } Ref