diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2020-05-03 17:08:15 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2020-07-11 17:09:58 +0100 |
commit | bc4cee44582d2a90d0792d6b213f00be1043000b (patch) | |
tree | 001ab82ed2bd7c6b59a7cc06807cce988c484d66 /modules/visual_script/visual_script_editor.h | |
parent | 156daddaaf16e36eb932452d1e30f4f77d29aae6 (diff) |
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
Diffstat (limited to 'modules/visual_script/visual_script_editor.h')
-rw-r--r-- | modules/visual_script/visual_script_editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<SyntaxHighlighter> p_highlighter) override; - virtual void set_syntax_highlighter(Ref<SyntaxHighlighter> p_highlighter) override; + virtual void add_syntax_highlighter(Ref<EditorSyntaxHighlighter> p_highlighter) override; + virtual void set_syntax_highlighter(Ref<EditorSyntaxHighlighter> p_highlighter) override; virtual void apply_code() override; virtual RES get_edited_resource() const override; |