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