If we have reached last state and previous state is not 1 , then check next character . If next character is ' \0' , then return true , else false
if prev_state == 2 and curr_state == 0 : NEW_LINE INDENT return False NEW_LINE DEDENT