summaryrefslogtreecommitdiff
path: root/modules/gdscript/editor
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-09-28 13:11:06 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-09-28 13:13:18 +0300
commitdb89fef8fac26b829025bfd21e475f170e2bde8f (patch)
tree0ad8fddbd4d265174407027e438a88ac196ce119 /modules/gdscript/editor
parent3481c47e7148fa31151c95d0adf198a370358351 (diff)
Highlight singletons and class_names in GDScript
Also, implement a small QoL change for auto-typed variables. Closes #5739
Diffstat (limited to 'modules/gdscript/editor')
-rw-r--r--modules/gdscript/editor/gdscript_highlighter.cpp2
1 files changed, 1 insertions, 1 deletions
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<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;
}