diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2020-03-07 11:17:18 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2020-07-11 15:26:58 +0100 |
commit | 2f1080be9b032b1cf5086201e45057baa6b1a179 (patch) | |
tree | c6af7f72914a1ea9c88eddb80925ae174cfbd8e3 /editor/plugins/script_editor_plugin.cpp | |
parent | be119c5c473be3fb73458baca7066d85869d6f1d (diff) | |
download | redot-engine-2f1080be9b032b1cf5086201e45057baa6b1a179.tar.gz |
Convert syntax highlighters into a resource
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 8386d44e69..3f17f1166f 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2024,8 +2024,8 @@ bool ScriptEditor::edit(const RES &p_resource, int p_line, int p_col, bool p_gra se->add_syntax_highlighter(highlighter); if (script != nullptr && !highlighter_set) { - List<String> languages = highlighter->get_supported_languages(); - if (languages.find(script->get_language()->get_name())) { + Array languages = highlighter->_get_supported_languages(); + if (languages.find(script->get_language()->get_name()) > -1) { se->set_syntax_highlighter(highlighter); highlighter_set = true; } |