summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.h
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-03-24 20:09:07 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-03-24 21:26:18 +0300
commiteab05558c412ad00b600db88a618128478b2f3ec (patch)
tree5464095ab6b52f996a53f9511a74312f837fb4ba /editor/plugins/script_editor_plugin.h
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-eab05558c412ad00b600db88a618128478b2f3ec.tar.gz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h
index d5c33c73b4..d0079761b8 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(); }
};