Merge pull request #115814 from TheDying0fLight/fix-highlighter-regression

Fix editor syntax highlighter regression
This commit is contained in:
Thaddeus Crews 2026-02-04 11:04:15 -06:00
commit c22aa78faf
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -521,6 +521,7 @@ void TextEditorBase::set_syntax_highlighter(Ref<EditorSyntaxHighlighter> 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);
}