Util: Fix empty Array parsing

This commit is contained in:
Riyyi
2022-07-10 16:13:44 +02:00
parent fc3dc936fa
commit ea7049306e
+1 -1
View File
@@ -337,8 +337,8 @@ Value Parser::getArray()
// Trailing comma // Trailing comma
if (array.asArray().size() > 0) { if (array.asArray().size() > 0) {
reportError((*m_tokens)[m_index - 1], "invalid comma, expecting ']'"); reportError((*m_tokens)[m_index - 1], "invalid comma, expecting ']'");
break;
} }
break;
} }
else { else {
reportError(token, "expecting value or ']', not '" + token.symbol + "'"); reportError(token, "expecting value or ']', not '" + token.symbol + "'");