sublime_plugin.py 文件源码

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

项目:SublimeTerm 作者: percevalw 项目源码 文件源码
def on_query_context(view_id, key, operator, operand, match_all):
    v = sublime.View(view_id)
    for callback in all_callbacks['on_query_context']:
        try:
            val = callback.on_query_context(v, key, operator, operand, match_all)
            if val:
                return True
        except:
            traceback.print_exc()

    for vel in event_listeners_for_view(v):
        if 'on_query_context' in vel.__class__.__dict__:
            try:
                val = vel.on_query_context(key, operator, operand, match_all)
                if val:
                    return True
            except:
                traceback.print_exc()

    return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号