def find_tag_definition(block, offset):
 (block, boundary) = next_tag_boundary(block, offset, forward=False)
 if ((not boundary) or (not boundary.is_start)):
  return (None, False)
 tag_start = boundary
 closing = tag_start.closing
 tag = tag_start.name
 if tag_start.prefix:
  tag = ((tag_start.prefix + u':') + tag)
 return (tag, closing)

def find_tag_definition ( block , offset ) : ( block , boundary ) = next_tag_boundary ( block , offset , forward = False ) if ( ( not boundary ) or ( not boundary . is_start ) ) : return ( None , False ) tag_start = boundary closing = tag_start . closing tag = tag_start . name if tag_start . prefix : tag = ( ( tag_start . prefix + u':' ) + tag ) return ( tag , closing )
return the <tag | > definition .