def _findExpressionEnd(self, block):
        """Find end of the last expression
        """
        while block.isValid():
            column = self._lastColumn(block)
            if column > 0:
                return block, column
            block = block.previous()
        raise UserWarning()