Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grammar for MapMembers #1520

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Fix grammar for MapMembers #1520

merged 1 commit into from
Dec 1, 2022

Conversation

mtdowling
Copy link
Member

MapMembers grammar was incorrectly stating a BR was required between the key and value, but actually WS is required. This was already reflected in the implementation, and the previous grammar was at odds with being able to use a comma to separate the key and value members. I added a new test case for 2.0 models and map parsing.

Closes #1511

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

MapMembers grammar was incorrectly stating a BR was required
between the key and value, but actually WS is required. This
was already reflected in the implementation, and the previous
grammar was at odds with being able to use a comma to separate
the key and value members. I added a new test case for 2.0 models
and map parsing.

Closes #1511
@mtdowling mtdowling requested a review from a team as a code owner December 1, 2022 22:47
@mtdowling mtdowling merged commit af5ad4e into main Dec 1, 2022
@daddykotex
Copy link
Contributor

Hey @mtdowling I think I've found a second instance where a BR should be a *WS:

ValueAssignment =
*SP "=" *SP NodeValue BR

thanks

@mtdowling mtdowling deleted the fix-map-grammar branch March 21, 2023 16:50
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.

Grammar issue | question
3 participants