Modify to append end of block marker after last token.