def create_references_panel(window: sublime.Window):
panel = create_output_panel(window, "references")
panel.settings().set("result_file_regex",
r"^\s+\S\s+(\S.+)\s+(\d+):?(\d+)$")
panel.assign_syntax("Packages/" + PLUGIN_NAME +
"/Syntaxes/References.sublime-syntax")
# Call create_output_panel a second time after assigning the above
# settings, so that it'll be picked up as a result buffer
# see: Packages/Default/exec.py#L228-L230
panel = window.create_output_panel("references")
return panel
评论列表
文章目录