

def run(self, edit):
    sel = self.view.sel()[0]
    for region in self.view.sel():
        self.view.insert(edit, region.end(), '>')
    self.view.run_command('hide_auto_complete')
    if (not SETTINGS.get('auto_close_cfml')):
        return
    if (self.view.match_selector(sel.end(), 'string') or self.view.match_selector(sel.end(), 'source.cfscript.embedded.cfml') or (not self.view.match_selector(sel.end(), 'meta.tag.block.cf'))):
        return
    for region in self.view.sel():
        pos = region.begin()
        tagdata = self.view.substr(sublime.Region(0, pos)).split('<')
        tagdata.reverse()
        tagdata = tagdata.pop(0).split(' ')
        tagname = tagdata[0]
    if (self.view.match_selector(sel.end(), 'meta.tag.block.cf') and (not (self.view.substr((sel.end() - 1)) == '/')) and (not (tagname[0] == '/'))):
        if (not (tagname[(- 1)] == '>')):
            tagname = (tagname + '>')
        if ((not SETTINGS.get('auto_indent_on_close')) or (tagname == 'cfoutput>')):
            self.view.run_command('insert_snippet', {
                'contents': ('$0</' + region),
            })
        else:
            self.view.run_command('insert_snippet', {
                'contents': ('\n\t$0\n</' + tagname),
            })

dataset/ETHPy150Open SublimeText/ColdFusion/coldfusiontagcompletions.py CloseCftagCommand.run/VarMisuse@328/412 `tagname`->`region`