Skip to content

Commit e09663b

Browse files
JoshuaWisePostmanautcodenirvana
authored andcommitted
fix: support for nested messages and enums within group blocks
1 parent bb6b1d4 commit e09663b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/parse.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,14 @@ function parse(source, root, options) {
443443
}
444444
break;
445445

446+
case "message":
447+
parseType(type, token);
448+
break;
449+
450+
case "enum":
451+
parseEnum(type, token);
452+
break;
453+
446454
/* istanbul ignore next */
447455
default:
448456
throw illegal(token); // there are no groups with proto3 semantics

0 commit comments

Comments
 (0)