Merge pull request #5487 from Paulb23/function_highlighting_issue_5454
Fixed function highlighting with spaces
This commit is contained in:
commit
fcf6977610
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue