Use a more obvious fix: check eob before updating the syntax table.
Attach a file by drag & drop or click to upload