Move pragma parsing from lexp to exp to reduce backtracking.