Skip to content

Fix parser handling of message field values and group-in-oneof legalization#688

Merged
doriable merged 2 commits intomainfrom
parse-fixes
Mar 19, 2026
Merged

Fix parser handling of message field values and group-in-oneof legalization#688
doriable merged 2 commits intomainfrom
parse-fixes

Conversation

@doriable
Copy link
Member

@doriable doriable commented Mar 19, 2026

Fix infix expression parsing for colon-less field values in message literals
by checking for valid tokens ahead. Also, no longer require a leaf check for
message literals.

Also, allow groups inside oneof definitions.

…zation

Parse message field values with parseExprPrefix instead of parseExprInfix
so that infix keywords like "to" are not consumed as part of the value.
Allow groups inside oneof definitions, and remove the IsLeaf guard that
prevented colon-less fields with angle-bracket message expressions.
@doriable doriable requested a review from mcy March 19, 2026 16:21
@doriable doriable merged commit 019757e into main Mar 19, 2026
8 checks passed
@doriable doriable deleted the parse-fixes branch March 19, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants