def something(token_class):
        def callback(lexer, match, context):
            text = match.group()
            if not text:
                return
            yield match.start(), token_class, text
            context.pos = match.end()
        return callback
Do not produce empty tokens.
dataset/ETHPy150Open adieu/allbuttonspressed/pygments/lexers/text.py/YamlLexer.something