def html_elements_attributes(self, view, prefix, pos): tag = cmpl.find_tag_name(view, pos) values = HTML_ELEMENTS_ATTRIBUTES.get(tag, []) return [(v, '%s\t@%s' % (v,v), '%s="$1"' % v) for v in values]
def html_elements_attributes(self, view, prefix, pos): tag = cmpl.find_tag_name(view, pos) values = HTML_ELEMENTS_ATTRIBUTES.get(tag, []) return [(v, '%s\t@%s' % (v, v), '%s="$1"' % v) for v in values]