fix nested vcm elements

This commit is contained in:
MihailRis 2026-01-08 22:17:34 +03:00
parent 27683793a6
commit 22e0c469c0

View file

@ -396,7 +396,11 @@ public:
void parseSubElements(Node& node) {
skipWhitespace();
while (hasNext()) {
if (peek() != '@') {
char c = peek();
if (c == '}') {
break;
}
if (c != '@') {
throw error("unexpected character in element");
}
nextChar();
@ -415,14 +419,12 @@ public:
if (!hasNext()) {
break;
}
char c = peek();
c = peek();
if (c == '{') {
nextChar();
parseSubElements(*subnode);
expect('}');
skipWhitespace();
} else if (c == '}') {
break;
}
}
}