summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-09-24 16:48:11 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-09-24 17:56:13 +0200
commit56f095296c23cb66b3aa7077ccf0f7801d6875b3 (patch)
tree7a6738652d29249e93452e695668cfa26f4a9e15
parentc3e16cda00a9fbec4515142f4c59bc5134f1bfb0 (diff)
downloadredot-engine-56f095296c23cb66b3aa7077ccf0f7801d6875b3.tar.gz
Fix editing of some properties in `CodeHighlighter`
-rw-r--r--scene/resources/syntax_highlighter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/resources/syntax_highlighter.cpp b/scene/resources/syntax_highlighter.cpp
index 6da4215031..da90ba1ef2 100644
--- a/scene/resources/syntax_highlighter.cpp
+++ b/scene/resources/syntax_highlighter.cpp
@@ -442,7 +442,6 @@ Color CodeHighlighter::get_keyword_color(const String &p_keyword) const {
}
void CodeHighlighter::set_keyword_colors(const Dictionary p_keywords) {
- keywords.clear();
keywords = p_keywords;
clear_highlighting_cache();
}
@@ -476,7 +475,6 @@ Color CodeHighlighter::get_member_keyword_color(const String &p_member_keyword)
}
void CodeHighlighter::set_member_keyword_colors(const Dictionary &p_member_keywords) {
- member_keywords.clear();
member_keywords = p_member_keywords;
clear_highlighting_cache();
}