filetypes.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:porcupine 作者: Akuli 项目源码 文件源码
def header_callback(lexer, match):
        # highlight correct filetype names specially
        if match.group(1) in filetypes or match.group(1) == 'DEFAULT':
            yield (match.start(), pygments.token.Keyword, match.group(0))
        else:
            yield (match.start(), pygments.token.Text, match.group(0))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号