|
@@ -165,6 +165,13 @@ void initialize_gdscript_module(ModuleInitializationLevel p_level) {
|
|
|
|
|
|
gdscript_translation_parser_plugin.instantiate();
|
|
gdscript_translation_parser_plugin.instantiate();
|
|
EditorTranslationParser::get_singleton()->add_parser(gdscript_translation_parser_plugin, EditorTranslationParser::STANDARD);
|
|
EditorTranslationParser::get_singleton()->add_parser(gdscript_translation_parser_plugin, EditorTranslationParser::STANDARD);
|
|
|
|
+ } else if (p_level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
|
|
|
|
+ ClassDB::APIType prev_api = ClassDB::get_current_api();
|
|
|
|
+ ClassDB::set_current_api(ClassDB::API_EDITOR);
|
|
|
|
+
|
|
|
|
+ GDREGISTER_CLASS(GDScriptSyntaxHighlighter);
|
|
|
|
+
|
|
|
|
+ ClassDB::set_current_api(prev_api);
|
|
}
|
|
}
|
|
#endif // TOOLS_ENABLED
|
|
#endif // TOOLS_ENABLED
|
|
}
|
|
}
|