Merge pull request #52022 from KoBeWi/syntax_fixlighter

Restore syntax highlighting
This commit is contained in:
Hugo Locurcio 2021-08-23 18:47:41 +02:00 committed by GitHub
commit c162c87535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,9 @@ Dictionary SyntaxHighlighter::get_line_syntax_highlighting(int p_line) {
return color_map; return color_map;
} }
GDVIRTUAL_CALL(_get_line_syntax_highlighting, p_line, color_map); if (!GDVIRTUAL_CALL(_get_line_syntax_highlighting, p_line, color_map)) {
color_map = _get_line_syntax_highlighting_impl(p_line);
}
highlighting_cache[p_line] = color_map; highlighting_cache[p_line] = color_map;
return color_map; return color_map;