def regexer_for_targets(targets):
for target in targets:<EOL><INDENT>path, file_ext = os.path.splitext(target)<EOL>regexer = config.regexers[file_ext]<EOL>yield target, regexer<EOL><DEDENT>
Pairs up target files with their correct regex