Skip to content

Commit 56d50c3

Browse files
committed
Merge pull request #97414 from AThousandShips/code_highlight_fix
Fix editing of some properties in `CodeHighlighter`
2 parents 01d567b + 56f0952 commit 56d50c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scene/resources/syntax_highlighter.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ Color CodeHighlighter::get_keyword_color(const String &p_keyword) const {
442442
}
443443

444444
void CodeHighlighter::set_keyword_colors(const Dictionary p_keywords) {
445-
keywords.clear();
446445
keywords = p_keywords;
447446
clear_highlighting_cache();
448447
}
@@ -476,7 +475,6 @@ Color CodeHighlighter::get_member_keyword_color(const String &p_member_keyword)
476475
}
477476

478477
void CodeHighlighter::set_member_keyword_colors(const Dictionary &p_member_keywords) {
479-
member_keywords.clear();
480478
member_keywords = p_member_keywords;
481479
clear_highlighting_cache();
482480
}

0 commit comments

Comments
 (0)