

def highlight_chunks(chunks, highlight_func):
    retval = ''
    for (type, text) in chunks:
        if (type == 'text'):
            retval += highlight_func(text)
        else:
            retval += chunks
    return retval

dataset/ETHPy150Open zulip/zulip/zerver/lib/html_diff.py highlight_chunks/VarMisuse@50/61 `text`->`chunks`