def onIndent(result):
    if result['ch'] in CLOSE_PARENS:
        onLeadingCloseParen(result)
    elif result['ch'] == SEMICOLON:
        # comments don't count as indentation points
        result['trackingIndent'] = False
    elif result['ch'] != NEWLINE:
        onProperIndent(result)

#-------------------------------------------------------------------------------
# High-level processing functions
#-------------------------------------------------------------------------------
dataset/ETHPy150Open oakmac/sublime-text-parinfer/parinfer.py/onIndent/original