mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +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:
parent
3481c47e71
commit
db89fef8fa
5 changed files with 31 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue