def find_end_of_statement(self, index="insert"):
        '''Find the end of the statement that contains the given index

        This is highly inaccurate, but Good Enough for now. It will, for
        example, think these three are part of the same statement:
        | one
        | | ... | two
        ... | three

        Like I said, it's good enough for now. It catches all normal
        cases; I can always improve it later. 
        '''
        mark = "statement_start"
        self.mark_set(mark, "%s lineend" % index)
        while (self.compare(mark, "<", "end") and 
               self.get("%s+1c linestart" % mark, mark % "%s+1c lineend").lstrip("| ").startswith("...")):
            self.mark_set(mark, "%s+1c lineend" % mark)
        return self.index(mark)
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/debugger/keyworddte.py/KeywordDTE.find_end_of_statement/swapped operands of `%`