class Crass::Parser

def consume_simple_block(input = @tokens)

5.4.7. http://dev.w3.org/csswg/css-syntax/#consume-a-simple-block

token.
Consumes and returns a simple block associated with the current input
def consume_simple_block(input = @tokens)
  start_token = input.current[:node]
  end_token   = BLOCK_END_TOKENS[start_token]
  block = {
    :start  => start_token.to_s,
    :end    => end_token.to_s,
    :value  => [],
    :tokens => [input.current] # Non-standard. Used for serialization.
  }
  block[:tokens].concat(input.collect do
    while token = input.consume
      break if token[:node] == end_token
      input.reconsume
      block[:value] << consume_component_value(input)
    end
  end)
  create_node(:simple_block, block)
end