fix nkw rule so keywords at the end of the source stream work