diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-05 12:15:57 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-05 12:15:57 +0200 |
commit | fe25b1843241f6e56a598f87c74938b92ad91685 (patch) | |
tree | 194f3849e313752b409b9506b704165e325fe1a8 /editor/plugins/script_editor_plugin.h | |
parent | b5064a6160f998b009eefc3145c635ca1c89556e (diff) | |
parent | eab05558c412ad00b600db88a618128478b2f3ec (diff) | |
download | redot-engine-fe25b1843241f6e56a598f87c74938b92ad91685.tar.gz |
Merge pull request #89861 from dalexeev/editor-help-fix-csharp-crash
Fix regression with C# build editor crash due to `EditorHelpHighlighter`
Diffstat (limited to 'editor/plugins/script_editor_plugin.h')
-rw-r--r-- | editor/plugins/script_editor_plugin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index 4fff724866..0252e10b43 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -78,6 +78,7 @@ class EditorStandardSyntaxHighlighter : public EditorSyntaxHighlighter { private: Ref<CodeHighlighter> highlighter; + ScriptLanguage *script_language = nullptr; // See GH-89610. public: virtual void _update_cache() override; @@ -87,6 +88,8 @@ public: virtual Ref<EditorSyntaxHighlighter> _create() const override; + void _set_script_language(ScriptLanguage *p_script_language) { script_language = p_script_language; } + EditorStandardSyntaxHighlighter() { highlighter.instantiate(); } }; |