From 6cb08c71640435b04cf61f53a108064e47681c65 Mon Sep 17 00:00:00 2001 From: dzil123 <5725958+dzil123@users.noreply.github.com> Date: Sat, 17 Sep 2022 01:24:19 -0700 Subject: [PATCH] Fix variables highlighting as types --- modules/gdscript/editor/gdscript_highlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index d815e632a..b8dd98bc3 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -235,7 +235,7 @@ Map GDScriptSyntaxHighlighter::_get_line_syntax_ } } - if (is_symbol) { + if (is_symbol && in_region == -1) { if (in_function_name) { in_function_args = true; }