You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Merge pull request #101319 from JulianHeuser/region_syntax_highlighting_fix
Improve consistency of code regions
This commit is contained in:
@@ -150,6 +150,12 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
|
||||
break;
|
||||
}
|
||||
}
|
||||
// "#region" and "#endregion" only highlighted if they're the first region on the line.
|
||||
if (color_regions[c].type == ColorRegion::TYPE_CODE_REGION &&
|
||||
str.strip_edges().split_spaces()[0] != "#region" &&
|
||||
str.strip_edges().split_spaces()[0] != "#endregion") {
|
||||
match = false;
|
||||
}
|
||||
if (!match) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user