Procházet zdrojové kódy

Fixed numbers not highlighting after space

Paulb23 před 9 roky
rodič
revize
cd07badee3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {