Fix handling of lexer accept positions for zero-length tokens and at EOF
Merge pull request #747 from sharwell/lexer-accept-position

Fix handling of lexer accept positions for zero-length tokens and at EOF