Add a reference to the source text when throwing syntax errors.