Skip to content

Commit

Permalink
[1587188]Fixed parsing of comment at tail of object.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Mar 23, 2007
1 parent 3ffbf20 commit fe536c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib_json/json_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,17 @@ Reader::readObject( Token &tokenStart )
Token comma;
if ( !readToken( comma )
|| ( comma.type_ != tokenObjectEnd &&
comma.type_ != tokenArraySeparator ) )
comma.type_ != tokenArraySeparator &&
comma.type_ != tokenComment ) )
{
return addErrorAndRecover( "Missing ',' or '}' in object declaration",
comma,
tokenObjectEnd );
}
bool finalizeTokenOk = true;
while ( comma.type_ == tokenComment &&
finalizeTokenOk )
finalizeTokenOk = readToken( comma );
if ( comma.type_ == tokenObjectEnd )
return true;
}
Expand Down

0 comments on commit fe536c0

Please sign in to comment.