Correctly implement policy lexing.