Constraints on inflation from cosmic microwave background and Lyman-α forest