allow trailing comma (,) in objects, which is allowed per the spec (thanks to Matthew Williams for the fix)

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1912 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 16 years ago
parent 41807f1ea7
commit e6c34b3ded

@ -161,6 +161,9 @@ bool object_parse(std::istream& input, AmArg& res) {
do {
std::string key;
if (!parse_string(input, &key)) {
if (match("}",input,true)) {
return true;
}
return false;
}
if (!match(":", input)) {

Loading…
Cancel
Save