def dict_key(self):
while True:<EOL><INDENT>token = self.next()<EOL>t_value = token["<STR_LIT:value>"]<EOL>if t_value == "<STR_LIT:\n>":<EOL><INDENT>continue<EOL><DEDENT>if t_value == "<STR_LIT:}>":<EOL><INDENT>raise self.ParseEnd()<EOL><DEDENT>if token["<STR_LIT:type>"] == "<STR_LIT>":<EOL><INDENT>return self.make_value(t_value)<EOL><DEDENT>self.error("<STR_LIT>")<EOL><DEDENT>
Find the next key in a dict.  We skip any newlines and check for if the
dict has ended.