code: def _parse_quoted_key(self):  # type: () -> Key
          
          quote_style = self._current
          key_type = None
          dotted = False
          for t in KeyType:
              if t.value == quote_style:
                  key_type = t
                  break
  
          if key_type is None:
              raise RuntimeError("Should not have entered _parse_quoted_key()")
  
          self.inc()
          self.mark()
  
          while self._current != quote_style and self.inc():
              pass
  
          key = self.extract()
  
          if self._current == ".":
              self.inc()
              dotted = True
              key += "." + self._parse_key().as_string()
              key_type = KeyType.Bare
          else:
              self.inc()
  
          return Key(key, key_type, "", dotted)
docs: Parses a key enclosed in either single or double quotes.