def split_on_comma(tokens):
    parts = []
    this_part = []
    for token in tokens:
        if token.type == 'DELIM' and token.value == ',':
            parts.append(this_part)
            this_part = []
        else:
            this_part.append(token)
    parts.append(this_part)
    return parts
Split a list of tokens on commas, ie ``,`` DELIM tokens.
dataset/ETHPy150Open FichteFoll/CSScheme/tinycsscheme/tinycss/parsing.py/split_on_comma