Fixed bug that caused the lexer to walk off the end of the buffer.
Merge pull request #3 from gitlarryf/lexer-patch

Fixed bug that caused the lexer to walk off the end of the buffer.