# File lib/asciidoctor/attribute_list.rb, line 61
  def parse(posattrs = [])
    return @attributes unless @attributes.nil?

    @attributes = {}
    # not sure if I want this assignment or not
    #attributes[0] = @scanner.string
    index = 0

    while parse_attribute(index, posattrs)
      break if @scanner.eos?
      skip_delimiter
      index += 1
    end

    @attributes
  end