Give earlier token classes precedence.