Make `highlight` a fn
@@ -192,12 +192,13 @@ class SublimeLinter(sublime_plugin.EventListener, Listener):
events.broadcast(events.LINT_START, {'buffer_id': view.buffer_id()})
- next = partial(self.highlight, view, view_has_changed)
+ next = partial(highlight, view, view_has_changed)
backend.lint_view(view, view_has_changed, next)
events.broadcast(events.LINT_END, {'buffer_id': view.buffer_id()})
- def highlight(self, view, view_has_changed, linter, errors):
+
+def highlight(view, view_has_changed, linter, errors):
"""
Highlight any errors found during a lint of the given view.
