Merge pull request #5487 from Paulb23/function_highlighting_issue_5454

Fixed function highlighting with spaces
This commit is contained in:
Rémi Verschelde 2016-06-30 07:57:31 +02:00 committed by GitHub
commit fcf6977610

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