lib/protobuf/compiler/proto.y in ruby_protobuf-0.4.10 vs lib/protobuf/compiler/proto.y in ruby_protobuf-0.4.11
- old
+ new
@@ -120,12 +120,13 @@
field_option_list : field_option
{ result = val }
| field_option_list ',' field_option
{ result << val[2] }
- field_option : option_body
- | 'default' '=' constant
- { result = [:default, val[2]] }
+ field_option : 'default' '=' constant
+ { result = [:default, val[2]] }
+ | IDENT '=' constant
+ { result = [val[0], val[2]] }
extensions : 'extensions' extension comma_extension_list ';'
{ result = Protobuf::Node::ExtensionsNode.new(val[2].unshift(val[1])) }
comma_extension_list :