#NEWLINE# @ parse_current_buffer #NEWLINE# def highlight_curr_element( self ) : #NEWLINE# #INDENT# 'Highlights opening and closing tags of the current element.' #NEWLINE# v . clear_hl ( 'BreezeHl' ) #NEWLINE# node = self . parser . get_current_node ( ) #NEWLINE# if ( not node ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# ( line , scol ) = ( node . start [ 0 ] , ( node . start [ 1 ] + 1 ) ) #NEWLINE# ecol = ( ( scol + len ( node . tag ) ) + 1 ) #NEWLINE# patt = '\\%{0}l\\%>{1}c\\%<{2}c' . format ( line , scol , ecol ) #NEWLINE# v . highlight ( 'BreezeHl' , patt ) #NEWLINE# if ( node . tag not in misc . empty_tags ) : #NEWLINE# #INDENT# ( line , scol ) = ( line . end [ 0 ] , ( node . end [ 1 ] + 1 ) ) #NEWLINE# ecol = ( ( scol + len ( node . tag ) ) + 2 ) #NEWLINE# patt = '\\%{0}l\\%>{1}c\\%<{2}c' . format ( line , scol , ecol ) #NEWLINE# v . highlight ( 'BreezeHl' , patt )