| commit | a9388d5c978950a685a2f84eb35a38f94b17b6a0 | [log] [tgz] |
|---|---|---|
| author | Alex Ruiz <alruiz@google.com> | Mon Jul 25 15:33:23 2011 -0700 |
| committer | Alex Ruiz <alruiz@google.com> | Mon Jul 25 15:33:23 2011 -0700 |
| tree | 3a7c2c6d42327a969279da7d474e7c9037cbd582 | |
| parent | 7c3dab8d2c2e710d955f1a5277199a77f70d783e [diff] |
In progress: [ Issue 87 ] Protobuf editor does not recognize "import public" Added "import public" to the language grammar.
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 f1e61b7..81c3731 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
@@ -28,8 +28,14 @@ 'package' name=QualifiedName ';'; Import: + RegularImport | PublicImport; + +RegularImport: 'import' importURI=STRING ';'; +PublicImport: + 'import' 'public' importURI=STRING ';'; + QualifiedName: '.'? Name ('.' Name)*;