def update_errors_in_view(view):
    global g_color_configs, g_default_color
    file_name = get_file_name_from_view(view)
    if file_name is None:
        return

    for idx, config in enumerate(g_color_configs):
        region_key = REGION_KEY_PREFIX + str(idx)
        scope = config["scope"] if "scope" in config else "invalid"
        icon = config["icon"] if "icon" in config else ""
        default_display = "fill" if config in "scope" else "none"
        display = config["display"] if "display" in config else default_display
        if g_show_errors:
            regions = [e.get_region(view) for e in g_errors if e.file_name == file_name and e.color_index == idx]
            view.add_regions(region_key, regions, scope, icon, REGION_FLAGS[display])
        else:
            view.erase_regions(region_key)
dataset/ETHPy150Open bblanchon/SublimeText-HighlightBuildErrors/HighlightBuildErrors.py/update_errors_in_view/swapped operands of `in`