mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Ported: Fix colour region continuation over blank lines, issue 41120
- Paulb23
5cf2cf8646
This commit is contained in:
parent
634bdfbb69
commit
6ea9b581d7
@ -83,6 +83,11 @@ 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;
|
||||
|
||||
|
@ -169,6 +169,11 @@ Dictionary CodeHighlighter::_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 < line_length; j++) {
|
||||
Dictionary highlighter_info;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user