You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Fix shader highlighting the interruption in color_region caused by disabled_branch_regions.
This commit is contained in:
@@ -48,6 +48,11 @@ Dictionary GDShaderSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
|
|||||||
|
|
||||||
for (const Point2i ®ion : disabled_branch_regions) {
|
for (const Point2i ®ion : disabled_branch_regions) {
|
||||||
if (p_line >= region.x && p_line <= region.y) {
|
if (p_line >= region.x && p_line <= region.y) {
|
||||||
|
// When "color_regions[0].p_start_key.length() > 2",
|
||||||
|
// disabled_branch_region causes color_region to break.
|
||||||
|
// This should be seen as a temporary solution.
|
||||||
|
CodeHighlighter::_get_line_syntax_highlighting_impl(p_line);
|
||||||
|
|
||||||
Dictionary highlighter_info;
|
Dictionary highlighter_info;
|
||||||
highlighter_info["color"] = disabled_branch_color;
|
highlighter_info["color"] = disabled_branch_color;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user