docs: def eat_string(self, string):
          """Move current position by length of string and count lines by \n."""
          pos = self.pos
          if self.eos or pos + len(string) > self.length:
              return None
  
          col = self.col
          row = self.row
          for char in string:
              col += 1
              pos += 1
              if char == '\n':  # handle a newline char
                  col = 0
                  row += 1
  
          self.pos = pos
          self.col = col
          self.row = row
  
          if not self.has_space():  # Set eos if there is no more space left.
              self.eos = 1