#NEWLINE# def update_regions( self ) : #NEWLINE# #INDENT# self . add_missing_views ( ) #NEWLINE# for ( view_name , regions ) in self . state . items ( ) : #NEWLINE# #INDENT# for reg_type_name in self . region_types : #NEWLINE# #INDENT# self . views [ view_name ] . erase_regions ( reg_type_name ) #NEWLINE# #UNINDENT# region_sets = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( reg_type , line ) in regions : #NEWLINE# #INDENT# if ( ( reg_type == 'line_marker' ) or ( ( 'line_marker' , line ) not in regions ) ) : #NEWLINE# #INDENT# if ( reg_type not in region_sets ) : #NEWLINE# #INDENT# region_sets [ reg_type ] = [ ] #NEWLINE# #UNINDENT# region_sets [ reg_type ] . append ( sublime . Region ( self . views [ view_name ] . text_point ( ( line - 1 ) , 0 ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# for ( reg_name , v ) in region_sets . items ( ) : #NEWLINE# #INDENT# print ( 'Adding region:' , view_name , reg_name , v ) #NEWLINE# self . views [ view_name ] . add_regions ( reg_name , v , * self . region_types [ reg_name ] )