Преглед на файлове

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

mingodad преди 13 години
родител
ревизия
0e6d14367a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      squirrel/sqlexer.cpp

+ 1 - 1
squirrel/sqlexer.cpp

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