Skip to content

Commit 68beff1

Browse files
fix: reserved field inside group blocks fail parsing
1 parent 00d5f1a commit 68beff1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/parse.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ function parse(source, root, options) {
513513
parseEnum(type, token);
514514
break;
515515

516+
case "reserved":
517+
readRanges(type.reserved || (type.reserved = []), true);
518+
break;
519+
516520
/* istanbul ignore next */
517521
default:
518522
throw illegal(token); // there are no groups with proto3 semantics

0 commit comments

Comments
 (0)