Improve order of lexer rules.