fix yaml array parsing

This commit is contained in:
MihailRis 2025-10-13 23:09:24 +03:00
parent 5755c616f3
commit 026ae756cf
2 changed files with 9 additions and 1 deletions

View file

@ -270,6 +270,10 @@ dv::value Parser::parseArray(int indent) {
dv::value object = dv::object();
object[std::string(name)] = parseFullValue(next_indent);
skipEmptyLines();
if (!hasNext()) {
list.add(std::move(object));
break;
}
next_indent = countIndent();
if (next_indent > indent) {
pos = linestart;