def get_line_indent(token):
start = token.start_mark.buffer.rfind('<STR_LIT:\n>', <NUM_LIT:0>,<EOL>token.start_mark.pointer) + <NUM_LIT:1><EOL>content = start<EOL>while token.start_mark.buffer[content] == '<STR_LIT:U+0020>':<EOL><INDENT>content += <NUM_LIT:1><EOL><DEDENT>return content - start<EOL>
Finds the indent of the line the token starts in.