From db89fef8fac26b829025bfd21e475f170e2bde8f Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sat, 28 Sep 2019 13:11:06 +0300 Subject: Highlight singletons and class_names in GDScript Also, implement a small QoL change for auto-typed variables. Closes #5739 --- modules/gdscript/editor/gdscript_highlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gdscript') diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index 963b40529d..ee7313957c 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -247,7 +247,7 @@ Map 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; } -- cgit v1.2.3