summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2020-03-07 14:29:44 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2020-07-11 15:40:00 +0100
commit156daddaaf16e36eb932452d1e30f4f77d29aae6 (patch)
tree942c5f0fe5bf8cbab99ca5534ecef4f76ea8d6b9 /editor/plugins/script_text_editor.cpp
parent2f1080be9b032b1cf5086201e45057baa6b1a179 (diff)
downloadredot-engine-156daddaaf16e36eb932452d1e30f4f77d29aae6.tar.gz
Expose Syntax highlighter for editor plugins
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index a9898dafe5..875e6ef350 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -1410,6 +1410,8 @@ void ScriptTextEditor::_bind_methods() {
ClassDB::bind_method("get_drag_data_fw", &ScriptTextEditor::get_drag_data_fw);
ClassDB::bind_method("can_drop_data_fw", &ScriptTextEditor::can_drop_data_fw);
ClassDB::bind_method("drop_data_fw", &ScriptTextEditor::drop_data_fw);
+
+ ClassDB::bind_method(D_METHOD("add_syntax_highlighter", "highlighter"), &ScriptTextEditor::add_syntax_highlighter);
}
Control *ScriptTextEditor::get_edit_menu() {