lib/ruby_php_serialization/parser.y in divoxx-ruby-php-serialization-0.2.0 vs lib/ruby_php_serialization/parser.y in divoxx-ruby-php-serialization-0.2.1

- old
+ new

@@ -40,11 +40,10 @@ attribute_list : attribute_list attribute { result = val[0] << val[1] } | { result = [] } ; - attribute : data ';' data { @numeric_array = false unless val[0].is_a?(Integer); result = [val[0], val[2]] } - | ';' data ';' data { @numeric_array = false unless val[1].is_a?(Integer); result = [val[1], val[3]] } + attribute : data ';' data ';' { @numeric_array = false unless val[0].is_a?(Integer); result = [val[0], val[2]] } ; array : 'a' ':' NUMBER ':' '{' { @numeric_array = true } attribute_list '}' { if @numeric_array \ No newline at end of file