def parse_tag(self, str):
        m = re.match(r':?(\S+):"([^"]*)"\s*', str)
        if m:
            return ((m.group(1), m.group(2)), m.end())
        m = re.match(r":?(\S+):'([^']*)'\s*", str)
        if m:
            return ((m.group(1), m.group(2)), m.end())
        m = re.match(r':?(\S+):(\S*)\s*', str)
        if m:
            return ((m.group(1), m.group(2)), m.end())
        m = re.match(r'\[(\S+)\]\s*', str)
        if m:
            try:
                return (("date", self.parse_date(m.group(1))), m.end())
            except __HOLE__:
                pass
dataset/ETHPy150Open pcapriotti/pledger/pledger/parser.py/Parser.parse_tag