def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def visitdir(self, dir):
        if self(dir):
            return "all"
        return self._matcher.visitdir(dir)