From 26f2b7415cdc3b064cd785fdd8fa9550b81241b7 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sat, 26 Mar 2016 22:02:33 +0000 Subject: [PATCH] Fixed numbers not highlighting after space (cherry picked from commit cd07badee3c198d295354f4e35b6bdc73622dbcc) --- scene/gui/text_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 76ca1d99f8e..9f1aad9c287 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) {