Browse Source

Fix for wrong line counting inside block comments.

mingodad 8 years ago
parent
commit
021f2f62d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      SquiLu/squirrel/sqlexer.cpp

+ 1 - 0
SquiLu/squirrel/sqlexer.cpp

@@ -219,6 +219,7 @@ SQInteger SQLexer::LexBlockComment()
 			    NEXT();
 			    if(CUR_CHAR == _SC('/')) { done = true; NEXT(); continue;}
 			    if(_want_comments) APPEND_CHAR(_SC('*')); //this is the '*' before NEXT()
+			    continue; //reevaluate, when it's a \n it'll be incremented line bellow
 			    };
 			break;
 			case _SC('\n'): data->currentline++; break;