You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Fix colour region continuation over blank lines, issue 41120
This commit is contained in:
@@ -82,6 +82,10 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting(int p_line)
|
||||
const String &str = text_edit->get_line(p_line);
|
||||
const int line_length = str.length();
|
||||
Color prev_color;
|
||||
|
||||
if (in_region != -1 && str.length() == 0) {
|
||||
color_region_cache[p_line] = in_region;
|
||||
}
|
||||
for (int j = 0; j < str.length(); j++) {
|
||||
Dictionary highlighter_info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user