diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2016-06-29 14:07:11 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2016-06-29 15:29:22 +0100 |
commit | 484f4d8dec3ad1f08a3a5d36d6eb59cdfd9ad7d8 (patch) | |
tree | 03aee61a2bd748837638ccb9d62f0eb6a0147e5a /scene | |
parent | 119cd5d3ff9fbbafc59db7481c0eee29f43c0c64 (diff) |
Fixed function highlighting with spaces
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/text_edit.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 6fd6137ac8..ca8284cb13 100644 --- a/scene/gui/text_edit.cpp +++ b/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; } |