Allow parsing until the end of the first root declaration