#NEWLINE# def range( self , line , pos , length = 1 ) : #NEWLINE# #INDENT# if ( line < 0 ) : #NEWLINE# #INDENT# persist . debug ( 'warning: range({}, ...) out of range' . format ( line ) ) #NEWLINE# return #NEWLINE# #UNINDENT# ( a , b ) = self . full_line ( line ) #NEWLINE# if ( a is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( length == 1 ) : #NEWLINE# #INDENT# code = self . code [ a : b ] [ pos : ] #NEWLINE# match = word_re . search ( code ) #NEWLINE# if match : #NEWLINE# #INDENT# length = len ( match . group ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# pos += a #NEWLINE# for i in range ( length ) : #NEWLINE# #INDENT# self . underlines . append ( sublime . Region ( ( ( pos + i ) + self . char_offset ) ) )