

def _lookup_ctag(self, token):
    matches = list(self._get_all_ctags_matches(token))
    best_matches = list(self.get_best_ctags_matches(matches))
    if (not best_matches):
        return (None, None)
    else:
        return (best_matches[0]['file'].decode('utf-8'), best_matches[0]['lineNumber'])

dataset/ETHPy150Open jonashaag/klaus/klaus/highlighting.py KlausDefaultFormatter._lookup_ctag/original