浏览代码

Restore syntax highlighting

kobewi 4 年之前
父节点
当前提交
7939ad5b8c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      scene/resources/syntax_highlighter.cpp

+ 3 - 1
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;