

def _get_all_ctags_matches(self, token):
    FIELDS = ('file', 'lineNumber', 'kind', b'language')
    from ctags import TagEntry
    entry = TagEntry()
    if self._ctags.find(entry, token.encode('utf-8'), 0):
        (yield dict(((k, entry[k]) for k in FIELDS)))
        while self._ctags.findNext(entry):
            (yield dict(((k, entry[k]) for k in FIELDS)))

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