You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Fix type highlighting after whitespace
This commit is contained in:
@@ -532,6 +532,7 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_whitespace(str[j])) {
|
||||
in_function_declaration = false;
|
||||
in_var_const_declaration = false;
|
||||
in_signal_declaration = false;
|
||||
@@ -539,6 +540,7 @@ Dictionary GDScriptSyntaxHighlighter::_get_line_syntax_highlighting_impl(int p_l
|
||||
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] == '\'')) {
|
||||
in_raw_string = true;
|
||||
|
||||
Reference in New Issue
Block a user