<s> from . . import completions , inline_documentation , goto_cfml_file , utils <EOL> from . custom_tags import * <EOL> from . documentation import get_inline_documentation , get_goto_cfml_file <EOL> def plugin_loaded ( ) : <EOL> custom_tags . sync_projects ( ) <EOL> completions . add_completion_source ( '<STR_LIT>' , get_tags ) <EOL> completions . add_completion_source ( '<STR_LIT>' , get_tag_attributes ) <EOL> inline_documentation . add_documentation_source ( get_inline_documentation ) <EOL> goto_cfml_file . add_goto_source ( get_goto_cfml_file ) <EOL> utils . get_closing_custom_tags = get_closing_custom_tags <EOL> def get_tags ( view , prefix , position , info ) : <EOL> if ( info [ "<STR_LIT>" ] == "<STR_LIT:<>" ) : <EOL> completion_list = get_prefix_completions ( info [ "<STR_LIT>" ] ) <EOL> if completion_list : <EOL> return completions . CompletionList ( completion_list , <NUM_LIT:0> , False ) <EOL> elif ( info [ "<STR_LIT>" ] == "<STR_LIT::>" ) : <EOL> prefix = view . substr ( view . word ( info [ "<STR_LIT>" ] - <NUM_LIT:1> ) ) <EOL> completion_list = get_tag_completions ( info [ "<STR_LIT>" ] , prefix ) <EOL> if completion_list : <EOL> return completions . CompletionList ( completion_list , <NUM_LIT:0> , False ) <EOL> return None <EOL> def get_tag_attributes ( view , prefix , position , info ) : <EOL> if not info [ "<STR_LIT>" ] : <EOL> return None <EOL> if "<STR_LIT::>" in info [ "<STR_LIT>" ] and info [ "<STR_LIT>" ] in custom_tags . projects : <EOL> completion_list = get_tag_attribute_completions ( info [ "<STR_LIT>" ] , info [ "<STR_LIT>" ] ) <EOL> if completion_list : <EOL> return completions . CompletionList ( completion_list , <NUM_LIT:0> , False ) <EOL> return None </s>
