diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-23 18:47:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 18:47:41 +0200 |
commit | c162c87535b394644e6e184ed9026e5d308296ab (patch) | |
tree | 2bf8cbb840ab546eb8199ced4f24346b3ad1e27c | |
parent | 583b6a594ab88208d1e78c94e70a2957c316cf64 (diff) | |
parent | 7939ad5b8c69982c6f2016a8dba3d6e7e3bfe03e (diff) |
Merge pull request #52022 from KoBeWi/syntax_fixlighter
Restore syntax highlighting
-rw-r--r-- | scene/resources/syntax_highlighter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/resources/syntax_highlighter.cpp b/scene/resources/syntax_highlighter.cpp index e1c5ebb005..52a3abf74d 100644 --- a/scene/resources/syntax_highlighter.cpp +++ b/scene/resources/syntax_highlighter.cpp @@ -43,7 +43,9 @@ Dictionary SyntaxHighlighter::get_line_syntax_highlighting(int p_line) { 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; return color_map; |