def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def matchfn(self, f):
        match = self._matcher
        return match(f) or any(map(match, util.dirs((f,))))