Skip to content

Commit

Permalink
json inf parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess committed Apr 22, 2022
1 parent d34dc32 commit c86e6d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/idl_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3052,7 +3052,8 @@ CheckedError Parser::SkipAnyJsonValue() {
case kTokenIntegerConstant:
case kTokenFloatConstant: NEXT(); break;
default:
if (IsIdent("true") || IsIdent("false") || IsIdent("null")) {
if (IsIdent("true") || IsIdent("false") || IsIdent("null") ||
IsIdent("inf")) {
NEXT();
} else
return TokenError();
Expand Down

0 comments on commit c86e6d0

Please sign in to comment.