Fixed: [ Issue 49 ] Options can appear inside messages
https://code.google.com/p/protobuf-dt/issues/detail?id=49
diff --git a/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/Protobuf.xtext b/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/Protobuf.xtext
index d72264c..5ab43c0 100644
--- a/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/Protobuf.xtext
+++ b/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/Protobuf.xtext
@@ -47,7 +47,7 @@
'}'(';')?;
MessageElement:
- Type | Property | Group | ExtendMessage;
+ Type | Property | Group | ExtendMessage | Option;
Group:
modifier=Modifier 'group' name=ID '=' index=INT ('[' 'deprecated' '=' deprecated=BooleanRef ']')? '{'
@@ -55,9 +55,11 @@
'}'(';')?;
Property:
- modifier=Modifier type=AbstractTypeReference name=ID '=' index=INT (('[' 'default' '=' default=ValueRef
- ']') | ('[' 'packed' '=' packed=BooleanRef ']') | ('[' 'deprecated' '=' deprecated=BooleanRef ']')
- | ('[' 'default' '=' default=ValueRef ',' 'deprecated' '=' deprecated=BooleanRef ']') )? ';';
+ modifier=Modifier type=AbstractTypeReference name=ID '=' index=INT
+ (('[' 'default' '=' default=ValueRef ']')
+ | ('[' 'packed' '=' packed=BooleanRef ']')
+ | ('[' 'deprecated' '=' deprecated=BooleanRef ']')
+ | ('[' 'default' '=' default=ValueRef ',' 'deprecated' '=' deprecated=BooleanRef ']') )? ';';
enum Modifier:
required