Permalink
Browse files

Do not skip optional delimiter after aggregate options, fixes #520

  • Loading branch information...
dcodeIO committed Dec 7, 2016
1 parent 193e65c commit 38d867fc50a4d7eb1ca07525c9e4c71b8782443e
Showing with 16 additions and 1 deletion.
  1. +0 −1 src/parse.js
  2. +16 −0 tests/data/service.proto
@@ -393,7 +393,6 @@ function parse(source, root) {
else
parseOptionValue(parent, name);
}
skip(s_semi, true);
} else
setOption(parent, name, readValue(true));
// Does not enforce a delimiter to be universal
@@ -0,0 +1,16 @@
syntax = "proto3";
package myservice;
message DoSomethingRequest {
}
message DoSomethingResponse {
}
service MyService {
rpc DoSomething(DoSomethingRequest) returns (DoSomethingResponse) {
option (google.api.http) = {
get: "/v1/dosomething"
};
};
}

0 comments on commit 38d867f

Please sign in to comment.