

def on_query_completions(self, view, prefix, locations):
    completions = []
    if (not view.match_selector(locations[0], 'meta.scope.between-output-tags.cfml - meta.tag - comment - string,                 text.html.cfm - meta - source - comment - string,                 text.html.cfm.embedded.cfml - meta - source.cfscript.embedded.cfml - comment - string,                 punctuation.definition.tag.cf.begin,                 source.sql.embedded.cfml - string - comment - meta.name.interpolated.hash')):
        return
    if SETTINGS.get('verbose_tag_completions'):
        return
    sel = view.sel()[0]
    if (view.substr((sel.begin() - 1)) == '.'):
        return []
    pt = ((locations[0] - len(prefix)) - 1)
    if any(((s in view.scope_name(pt)) for s in ['meta.tag.block.cf', 'meta.tag.inline.cf', 'string', 'comment'])):
        return
    for s in self.cflib.completions.keys():
        completions.extend([((s + '\tTag (cmfl)'), s)])
    if (view.substr(pt) != '<'):
        completions = [(list(item)[(- 2)], ('<' + list(item)[1])) for item in completions]
    return sorted(completions)

dataset/ETHPy150Open SublimeText/ColdFusion/coldfusiontagcompletions.py TagAutoComplete.on_query_completions/original