'return true if the given line is part of a multi-line block,
via backslash or triple-quote.'

def _in_multi_line(self, line):

    current_state = (self.backslashed or self.triplequoted)
    if re.search('\\\\$', line):
        self.backslashed = True
    else:
        self.backslashed = False
    triples = len(re.findall('\\"\\"\\"|\\\'\\\'\\\'', line))
    if ((triples == 1) or ((triples % 2) != 0)):
        self.triplequoted = (not self.triplequoted)
    return current_state
