Merge pull request #48989 from MarioLiebisch/variant-comment-line-breaks

Properly increase line counter when parsing comments
This commit is contained in:
Rémi Verschelde 2022-05-05 13:41:08 +02:00 committed by GitHub
commit 192499c743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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