#NEWLINE# def highlight( self , view , linters , hit_time ) : #NEWLINE# #INDENT# '\n        Highlight any errors found during a lint of the given view.\n\n        This method is called by Linter.lint_view after linting is finished.\n\n        linters is a list of the linters that ran. hit_time has the same meaning\n        as in lint(), and if the view was modified since the lint request was\n        made, this method aborts drawing marks.\n\n        If the view has not been modified since hit_time, all of the marks and\n        errors from the list of linters are aggregated and drawn, and the status\n        is updated.\n\n        ' #NEWLINE# vid = view . id ( ) #NEWLINE# if ( ( hit_time is not None ) and ( persist . last_hit_times . get ( vid , 0 ) > hit_time ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# errors = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# highlights = persist . highlights [ vid ] = HighlightSet ( ) #NEWLINE# for linter in linters : #NEWLINE# #INDENT# if other_view . highlight : #NEWLINE# #INDENT# highlights . add ( linter . highlight ) #NEWLINE# #UNINDENT# if linter . errors : #NEWLINE# #INDENT# for ( line , errs ) in linter . errors . items ( ) : #NEWLINE# #INDENT# errors . setdefault ( line , [ ] ) . extend ( errs ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# window_views = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# buffer_id = view . buffer_id ( ) #NEWLINE# for window in sublime . windows ( ) : #NEWLINE# #INDENT# wid = window . id ( ) #NEWLINE# for other_view in window . views ( ) : #NEWLINE# #INDENT# if ( other_view . buffer_id ( ) == buffer_id ) : #NEWLINE# #INDENT# vid = other_view . id ( ) #NEWLINE# persist . highlights [ vid ] = highlights #NEWLINE# highlights . clear ( other_view ) #NEWLINE# highlights . draw ( other_view ) #NEWLINE# persist . errors [ vid ] = errors #NEWLINE# if ( window_views . get ( wid ) is None ) : #NEWLINE# #INDENT# window_views [ wid ] = other_view #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# for view in window_views . values ( ) : #NEWLINE# #INDENT# self . on_selection_modified_async ( view )