adding trailing token check to semicolon snarfing