Преглед изворни кода

Fix for wrong line counting inside block comments.

mingodad пре 8 година
родитељ
комит
021f2f62d7
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      SquiLu/squirrel/sqlexer.cpp

+ 1 - 0
SquiLu/squirrel/sqlexer.cpp

@@ -219,6 +219,7 @@ SQInteger SQLexer::LexBlockComment()
 			    NEXT();
 			    NEXT();
 			    if(CUR_CHAR == _SC('/')) { done = true; NEXT(); continue;}
 			    if(CUR_CHAR == _SC('/')) { done = true; NEXT(); continue;}
 			    if(_want_comments) APPEND_CHAR(_SC('*')); //this is the '*' before NEXT()
 			    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;
 			break;
 			case _SC('\n'): data->currentline++; break;
 			case _SC('\n'): data->currentline++; break;