diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 690bd8d5d..08642fdcd 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -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();