def get_color_names(self, format_string):
names = set()<EOL>for token in self.tokens(format_string):<EOL><INDENT>if token.group("<STR_LIT>"):<EOL><INDENT>name = dict(parse_qsl(token.group("<STR_LIT>"))).get("<STR_LIT>")<EOL>if (<EOL>not name<EOL>or name in COLOR_NAMES_EXCLUDED<EOL>or name in COLOR_NAMES<EOL>or name[<NUM_LIT:0>] == "<STR_LIT:#>"<EOL>):<EOL><INDENT>continue<EOL><DEDENT>names.add(name)<EOL><DEDENT><DEDENT>return names<EOL>
Parses the format_string and returns a set of color names.