def is_standalone(text, start, end):
left = False<EOL>start -= <NUM_LIT:1><EOL>while start >= <NUM_LIT:0> and text[start] in spaces_not_newline:<EOL><INDENT>start -= <NUM_LIT:1><EOL><DEDENT>if start < <NUM_LIT:0> or text[start] == '<STR_LIT:\n>':<EOL><INDENT>left = True<EOL><DEDENT>right = re_space.match(text, end)<EOL>return (start+<NUM_LIT:1>, right.end()) if left and right else None<EOL>
check if the string text[start:end] is standalone by checking forwards
    and backwards for blankspaces
    :text: TODO
    :(start, end): TODO
    :returns: the start of next index after text[start:end]