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 quoted text grammar and parsing #1535

Merged

Conversation

milesziemer
Copy link
Contributor

Updates Smithy ABNF for QuotedChar and TextBlock, and updates IdlTextParser to properly parse QuotedChar and TextBlock. Previously, IdlTextParser was allowing any character to be used as a QuotedChar, despite QuotedChar having certain restrictions in the grammar. IdlTextParser was updated to follow the grammar's restrictions properly. The grammar restrictions were also loosened to allow tab characters in QuotedChar and double quotes in TextBlock, both of which were already in use. Specifically for double quotes in a TextBlock, one or two are allowed in a row, and must be followed by a QuotedChar.

Issue #, if available:
#1491

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

Updates Smithy ABNF for QuotedChar and TextBlock, and updates IdlTextParser to
properly parse QuotedChar and TextBlock. Previously, IdlTextParser was allowing
any character to be used as a QuotedChar, despite QuotedChar having certain
restrictions in the grammar. IdlTextParser was updated to follow the grammar's
restrictions properly. The grammar restrictions were also loosened to allow
tab characters in QuotedChar and double quotes in TextBlock, both of which
were already in use. Specifically for double quotes in a TextBlock, one or two
are allowed in a row, and must be followed by a QuotedChar.
@milesziemer milesziemer requested a review from a team as a code owner December 13, 2022 15:22
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