def fix_microsoft (foo):
i = <NUM_LIT:0><EOL>bar = []<EOL>while i < len(foo):<EOL><INDENT>text, lemma, pos, tag = foo[i]<EOL>if (text == "<STR_LIT:#>") and (i > <NUM_LIT:0>):<EOL><INDENT>prev_tok = bar[-<NUM_LIT:1>]<EOL>prev_tok[<NUM_LIT:0>] += "<STR_LIT:#>"<EOL>prev_tok[<NUM_LIT:1>] += "<STR_LIT:#>"<EOL>bar[-<NUM_LIT:1>] = prev_tok<EOL><DEDENT>else:<EOL><INDENT>bar.append(foo[i])<EOL><DEDENT>i += <NUM_LIT:1><EOL><DEDENT>return bar<EOL>
fix special case for `c#`, `f#`, etc.; thanks Microsoft