def find_attribute_name(view, start_pt): conds = track_scope('string'), track_regex('\s|='), track_regex('\S') regions = back_track(view, start_pt, *conds) return view.substr(regions[-1]) ################################################################################
def find_tag_start(view, start_pt): regions = back_track(view, start_pt, track_regex('<', False) ) return regions[-1].begin()