Example #1
0
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])
Example #2
0
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])
Example #3
0
def find_tag_start(view, start_pt):
	regions = back_track(view, start_pt, track_regex('<', False) )
	return regions[-1].begin()
Example #4
0
def find_tag_start(view, start_pt):
    regions = back_track(view, start_pt, track_regex('<', False))
    return regions[-1].begin()