Explorar o código

Merge pull request #4150 from Paulb23/number_syntax_highlighting

Fixed numbers not highlighting after space
Rémi Verschelde %!s(int64=9) %!d(string=hai) anos
pai
achega
f293503a98
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/gui/text_edit.cpp

+ 1 - 1
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) {