| commit | aaea3f210b1035e3ef05fc44f188700b1b4a36b6 | [log] [tgz] |
|---|---|---|
| author | Alex Ruiz <alruiz@google.com> | Fri Jul 01 23:29:09 2011 +0000 |
| committer | Alex Ruiz <alruiz@google.com> | Fri Jul 01 23:29:09 2011 +0000 |
| tree | 15e387ad229a867316bb227ed5ad151c616ed9c3 | |
| parent | 0d387dd96bc3b5de649fa5bfb8a2f50692ce64ad [diff] |
Fixed: [ Issue 81 ] Protobuf editor does not understand full grammar for "extensions" decl. https://code.google.com/p/protobuf-dt/issues/detail?id=81
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 8e73f49..1f4073b 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
@@ -48,7 +48,13 @@ Extensions | Type | Field | ExtendMessage | Option; Extensions: - 'extensions' extensionsFrom=INT 'to' (extensionsTo=INT | 'max') ';'; + 'extensions' ranges+=Range (',' ranges+=Range)* ';'; + +Range: + from=INT ('to' to=RangeMax)?; + +RangeMax: + INT | 'max'; Field: Property | Group;