Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prototext: Fix parsing of unknown repeated message fields
If `DiscardUnknown` was enabled, previously this syntax was rejected with an error "unexpected token: ]": unknown_field: [ {} ] This is because the parser short-circuited after parsing the {}, and didn't handle the closing square brace. Now it no longer short-circuits. Change-Id: I6230b56766632752a5cc8822b17ed8262873d6cc Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/530616 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Michael Stapelberg <stapelberg@google.com>
- Loading branch information