Fix lexing bug where certain lexers were blocking on eof - e.g. when
the programmer forgot to terminate an XML attribute.