From 510639bd95c18333552b35178af11a9c7896db01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20D=C3=B6hl?= Date: Tue, 3 Feb 2026 10:16:35 +0100 Subject: [PATCH] fix highlighter regression --- editor/script/script_editor_base.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/script/script_editor_base.cpp b/editor/script/script_editor_base.cpp index ef7939d3fa..8392257e75 100644 --- a/editor/script/script_editor_base.cpp +++ b/editor/script/script_editor_base.cpp @@ -521,6 +521,7 @@ void TextEditorBase::set_syntax_highlighter(Ref p_highl ERR_FAIL_COND(p_highlighter.is_null()); CodeEdit *te = code_editor->get_text_editor(); + p_highlighter->_set_edited_resource(edited_res); te->set_syntax_highlighter(p_highlighter); }