Skip to content

Commit

Permalink
fix: support for nested messages and enums within group blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWisePostmanaut authored and codenirvana committed Aug 17, 2022
1 parent bb6b1d4 commit e09663b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,14 @@ function parse(source, root, options) {
}
break;

case "message":
parseType(type, token);
break;

case "enum":
parseEnum(type, token);
break;

/* istanbul ignore next */
default:
throw illegal(token); // there are no groups with proto3 semantics
Expand Down

0 comments on commit e09663b

Please sign in to comment.