diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-03-30 12:36:42 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-03-30 12:36:42 +0200 |
commit | f293503a9857fae6b0c1db45f9d68f2cccd3b5fa (patch) | |
tree | 5608726e25225f15452198b715c1aee4f0209cf9 | |
parent | 44ee7c238e972b26c196f2c555da172b28ceecd1 (diff) | |
parent | cd07badee3c198d295354f4e35b6bdc73622dbcc (diff) |
Merge pull request #4150 from Paulb23/number_syntax_highlighting
Fixed numbers not highlighting after space
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index c9dd2dacf9..f5e1c82300 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -44,7 +44,7 @@ static bool _is_text_char(CharType c) { static bool _is_symbol(CharType c) { - return c!='_' && ((c>='!' && c<='/') || (c>=':' && c<='@') || (c>='[' && c<='`') || (c>='{' && c<='~') || c=='\t'); + return c!='_' && ((c>='!' && c<='/') || (c>=':' && c<='@') || (c>='[' && c<='`') || (c>='{' && c<='~') || c=='\t' || c==' '); } static bool _is_char(CharType c) { |