#NEWLINE# def get_function_region( view , function_name ) : #NEWLINE# #INDENT# functions = view . find_by_selector ( 'entity.name.function.cfml -meta.function.body' ) #NEWLINE# for funct_region in functions : #NEWLINE# #INDENT# if ( view . substr ( funct_region ) . lower ( ) == function_name ) : #NEWLINE# #INDENT# pt = funct_region . begin ( ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if view . match_selector ( pt , 'meta.function.cfml' ) : #NEWLINE# #INDENT# decl = utils . get_scope_region_containing_point ( view , pt , 'meta.function.cfml' ) #NEWLINE# body = utils . get_scope_region_containing_point ( view , ( decl . end ( ) + 1 ) , 'meta.function.body.tag.cfml' ) #NEWLINE# end = utils . get_scope_region_containing_point ( view , ( body . end ( ) + 1 ) , 'meta.tag.cfml' ) #NEWLINE# return sublime . Region ( decl . begin ( ) , end . end ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# decl = utils . get_scope_region_containing_point ( end , pt , 'meta.function.declaration.cfml' ) #NEWLINE# body = utils . get_scope_region_containing_point ( view , ( decl . end ( ) + 1 ) , 'meta.function.body.cfml' ) #NEWLINE# return sublime . Region ( decl . begin ( ) , body . end ( ) )