Skip to content

Commit

Permalink
fix: allow file-level options everywhere in the file
Browse files Browse the repository at this point in the history
allow file-level options everywhere in the file
  • Loading branch information
JustinBeckwith authored Apr 19, 2019
2 parents 6fa4c34 + 892db94 commit b70eebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,6 @@ function parse(source, root, options) {

case "option":

/* istanbul ignore if */
if (!head)
throw illegal(token);

parseOption(ptr, token);
skip(";");
break;
Expand Down
5 changes: 3 additions & 2 deletions tests/data/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
syntax = "proto2";

option java_package = "com.google.apps.jspb.proto";
option java_multiple_files = true;

import "google/protobuf/descriptor.proto";

Expand Down Expand Up @@ -267,4 +266,6 @@ message Deeply {
optional int32 count = 1;
}
}
}
}

option java_multiple_files = true;

0 comments on commit b70eebd

Please sign in to comment.