Skip to content

Commit

Permalink
allow file-level options everywhere in the file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Mar 14, 2019
1 parent 6fa4c34 commit 892db94
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 892db94

Please sign in to comment.