Skip to content

Commit

Permalink
Do not skip optional delimiter after aggregate options, fixes #520
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 7, 2016
1 parent 193e65c commit 38d867f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions tests/data/service.proto
Original file line number Diff line number Diff line change
@@ -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.