class Capybara::Selector::CSS::Splitter

def parse_block(start, final, strio)

def parse_block(start, final, strio)
  block = start
  while (char = strio.getc)
    case char
    when final
      return block + char
    when '\\'
      block += char + strio.getc
    when '"', "'"
      block += parse_string(char, strio)
    else
      block += char
    end
  end
  raise ArgumentError, "Invalid CSS Selector - Block end '#{final}' not found"
end