Merge pull request #88876 from dalexeev/gds-fix-type-highlighting-after-whitespace

GDScript: Fix type highlighting after whitespace
This commit is contained in:
Rémi Verschelde 2024-02-27 10:18:42 +01:00
commit 0499b57d9e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 8 additions and 6 deletions

View File

@ -532,12 +532,14 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
}
}
in_function_declaration = false;
in_var_const_declaration = false;
in_signal_declaration = false;
in_function_name = false;
in_lambda = false;
in_member_variable = false;
if (!is_whitespace(str[j])) {
in_function_declaration = false;
in_var_const_declaration = false;
in_signal_declaration = false;
in_function_name = false;
in_lambda = false;
in_member_variable = false;
}
}
if (!in_raw_string && in_region == -1 && str[j] == 'r' && j < line_length - 1 && (str[j + 1] == '"' || str[j + 1] == '\'')) {