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
No known key found for this signature in database
GPG key ID: 4D546A8F1E091856
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;
}