def add_inline_comment(area):
    """
    It adds inline comment to selected lines based on the file extesion.
    """

    comment = TABLE.get(splitext(area.filename)[1], DEFAULT)
    def rep(index0, index1):
        return (area.get(index0, index1), comment) % '%s%s '
    area.replace_ranges('sel', '^ +|^', rep)
    area.clear_selection()
dataset/ETHPy150Open iogf/vy/vyapp/plugins/inline_comment.py/add_inline_comment/swapped operands of `%`