It had been revealed to him by the Holy Spirit that he should not see death before he had seen the Lord's Christ.{"Christ" (Greek) and "Messiah" (Hebrew) both mean "Anointed One"}
So here in the prophecy it was to be a light, not just to Israel alone, but to the world, to the gentiles.