Fixed function highlighting with spaces

This commit is contained in:
Paulb23 2016-06-29 14:07:11 +01:00
parent 119cd5d3ff
commit 484f4d8dec

View file

@ -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;
}