Updated span regex so that it only matches if there is a syntax attribute to keep it from matching all spans in the text;