def collect_tokens_until(self, token_type):
self.next()<EOL>if self.current_token.type == token_type:<EOL><INDENT>return<EOL><DEDENT>while True:<EOL><INDENT>yield self.current_token<EOL>self.next()<EOL>if self.current_token.type == token_type:<EOL><INDENT>return<EOL><DEDENT>if self.current_token.type != '<STR_LIT>':<EOL><INDENT>raise self.error(f'<STR_LIT>'<EOL>f'<STR_LIT>')<EOL><DEDENT>self.next()<EOL><DEDENT>
Yield the item tokens in a comma-separated tag collection.