From bc4cee44582d2a90d0792d6b213f00be1043000b Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sun, 3 May 2020 17:08:15 +0100 Subject: Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighter - Extacted all syntax highlighting code from text edit - Removed enable syntax highlighting from text edit - Added line_edited_from signal to text_edit - Renamed get/set_syntax_highlighting to get/set_syntax_highlighter - Added EditorSyntaxHighligher --- modules/visual_script/visual_script_editor.cpp | 4 ++-- modules/visual_script/visual_script_editor.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/visual_script') diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index c8ecf0c283..2fcd9332a1 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -4660,10 +4660,10 @@ void VisualScriptEditor::_member_option(int p_option) { } } -void VisualScriptEditor::add_syntax_highlighter(Ref p_highlighter) { +void VisualScriptEditor::add_syntax_highlighter(Ref p_highlighter) { } -void VisualScriptEditor::set_syntax_highlighter(Ref p_highlighter) { +void VisualScriptEditor::set_syntax_highlighter(Ref p_highlighter) { } void VisualScriptEditor::_bind_methods() { diff --git a/modules/visual_script/visual_script_editor.h b/modules/visual_script/visual_script_editor.h index f39def0b32..e59618e120 100644 --- a/modules/visual_script/visual_script_editor.h +++ b/modules/visual_script/visual_script_editor.h @@ -288,8 +288,8 @@ protected: static void _bind_methods(); public: - virtual void add_syntax_highlighter(Ref p_highlighter) override; - virtual void set_syntax_highlighter(Ref p_highlighter) override; + virtual void add_syntax_highlighter(Ref p_highlighter) override; + virtual void set_syntax_highlighter(Ref p_highlighter) override; virtual void apply_code() override; virtual RES get_edited_resource() const override; -- cgit v1.2.3