1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Highlight singletons and class_names in GDScript

Also, implement a small QoL change for auto-typed variables.
Closes #5739
This commit is contained in:
Bojidar Marinov
2019-09-28 13:11:06 +03:00
parent 3481c47e71
commit db89fef8fa
5 changed files with 31 additions and 2 deletions

View File

@@ -247,7 +247,7 @@ Map<int, TextEdit::HighlighterInfo> GDScriptSyntaxHighlighter::_get_line_syntax_
in_function_args = false;
}
if (expect_type && prev_is_char) {
if (expect_type && (prev_is_char || str[j] == '=')) {
expect_type = false;
}