Skip to content
This repository has been archived by the owner on Mar 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from rtecco/master
Browse files Browse the repository at this point in the history
Fix compilation error for field options in Ruby 1.9
  • Loading branch information
macks committed May 21, 2011
2 parents c12fe26 + 2eb6f7a commit 7268223
Show file tree
Hide file tree
Showing 2 changed files with 703 additions and 705 deletions.
7 changes: 4 additions & 3 deletions lib/protobuf/compiler/proto.y
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ rule
| 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])) }
Expand Down
Loading

0 comments on commit 7268223

Please sign in to comment.