Fixed bug in lexer where last line was undefined when not newline terminated.