docs: def tokenize(contents):
      """Parse a string called contents for CMake tokens."""
      tokens = _scan_for_tokens(contents)
      tokens = _compress_tokens(tokens)
      tokens = [token for token in tokens if token.type != TokenType.Whitespace]
      return tokens