Fix lexer to correctly handle operators.

Fixes issue #1