Add a custom lexer that fixes a few problems.