Updating lexers to check for end of input