From 1e4f47ffe01cd3ffc17968fcb70c73952be16411 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 020c8c009a1..b2c8c87aabb 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; }