diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 6a321eec8..1ac32c139 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -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; } }