Browse Source

Added '\f' and '\v' to ignored spaces on lexer

mingodad 8 months ago
parent
commit
e50cd4cce9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      SquiLu/squirrel/sqlexer.cpp

+ 2 - 1
SquiLu/squirrel/sqlexer.cpp

@@ -301,7 +301,8 @@ SQInteger SQLexer::Lex(bool dontThrowIntegerOverflow)
 	data->svalue = NULL;
 	while(CUR_CHAR != SQUIRREL_EOB) {
 		switch(CUR_CHAR){
-		case _SC('\t'): case _SC('\r'): case _SC(' '): NEXT(); continue;
+		case _SC('\t'): case _SC('\r'): case _SC(' '):
+		    case _SC('\f'): case _SC('\v'): NEXT(); continue;
 		case _SC('\n'):
 			data->currentline++;
 			data->prevtoken=data->curtoken;