Increase line counter when parsing comments

(cherry picked from commit bf708e72dc5b6de7f2b0e8f433f17ba2e3064179)
This commit is contained in:
Mario Liebisch 2021-05-23 09:37:53 +02:00 committed by Relintai
parent 2f2e3573bd
commit e1be17e581

View File

@ -160,6 +160,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri
return OK;
}
if (ch == '\n') {
line++;
break;
}
}
@ -1559,6 +1560,7 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
return ERR_FILE_EOF;
}
if (ch == '\n') {
line++;
break;
}
}