parse_function would begin a new scope too soon