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 committed Jan 31, 2022
1 parent d13d5d5 commit c28d210
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parse.js
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 c28d210

Please sign in to comment.