Explorar o código

Fixed function highlighting with spaces

Paulb23 %!s(int64=9) %!d(string=hai) anos
pai
achega
484f4d8dec
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      scene/gui/text_edit.cpp

+ 5 - 0
scene/gui/text_edit.cpp

@@ -852,6 +852,11 @@ void TextEdit::_notification(int p_what) {
 								k++;
 							}
 
+							// check for space between name and bracket
+							while (k < str.length() && (str[k] == '\t' || str[k] == ' ')) {
+								k++;
+							}
+
 							if (str[k] == '(') {
 								in_function_name = true;
 							}