Util: Fix empty Array parsing
This commit is contained in:
@@ -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 + "'");
|
||||||
|
|||||||
Reference in New Issue
Block a user