summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-03-30 12:36:42 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-03-30 12:36:42 +0200
commitf293503a9857fae6b0c1db45f9d68f2cccd3b5fa (patch)
tree5608726e25225f15452198b715c1aee4f0209cf9 /scene/gui
parent44ee7c238e972b26c196f2c555da172b28ceecd1 (diff)
parentcd07badee3c198d295354f4e35b6bdc73622dbcc (diff)
Merge pull request #4150 from Paulb23/number_syntax_highlighting
Fixed numbers not highlighting after space
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp2
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) {