code: def accept_ws(buf, pos):
      
      match = re_ws.match(buf, pos)
      if not match:
          return None, pos
      return buf[match.start(0):match.end(0)], match.end(0)
docs: Skip whitespace at the current buffer position.