Improve lexer performance by deciding based on next character.

Closes #13.