Ver código fonte

Forgot to increase line numbers after newline when parsing lua style literal strings

mingodad 13 anos atrás
pai
commit
0e6d14367a
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      squirrel/sqlexer.cpp

+ 1 - 1
squirrel/sqlexer.cpp

@@ -301,7 +301,6 @@ SQInteger SQLexer::GetIDType(SQChar *s)
 	return TK_IDENTIFIER;
 }
 
-
 SQInteger SQLexer::ReadString(SQInteger ndelim,bool verbatim)
 {
 	INIT_TEMP_STRING();
@@ -322,6 +321,7 @@ SQInteger SQLexer::ReadString(SQInteger ndelim,bool verbatim)
 	NEXT();
 	if(IS_EOB()) return -1;
 	if(start_equals && CUR_CHAR == _SC('\n')) {
+	    ++_currentline;
 	    NEXT(); //if a new line follows the start of delimiter drop it
         if(IS_EOB()) return -1;
 	}