Explorar o código

Fix variables highlighting as types

(cherry picked from commit 1e4f47ffe01cd3ffc17968fcb70c73952be16411)
dzil123 %!s(int64=3) %!d(string=hai) anos
pai
achega
aff93994d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/gdscript/editor/gdscript_highlighter.cpp

+ 1 - 1
modules/gdscript/editor/gdscript_highlighter.cpp

@@ -235,7 +235,7 @@ Map<int, TextEdit::HighlighterInfo> GDScriptSyntaxHighlighter::_get_line_syntax_
 			}
 		}
 
-		if (is_symbol) {
+		if (is_symbol && in_region == -1) {
 			if (in_function_name) {
 				in_function_args = true;
 			}