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 apply statement parsing and ABNF #1414

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

milesziemer
Copy link
Contributor

This fixes an issue where applySomeShape @someTrait was valid, without any space between the apply and shape name. The fix makes it so spacing is required, not line breaks as was the case in the old ABNF, to be consistent with other shapes grammar (see SimpleShapeStatement)

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

This fixes an issue where `applySomeShape @someTrait` was valid,
without any space between the apply and shape name. The fix makes
it so spacing is required, not line breaks as was the case in
the old ABNF, to be consistent with other shapes grammar
(see [SimpleShapeStatement](https://awslabs.github.io/smithy/2.0/spec/idl.html#grammar-token-smithy-SimpleShapeStatement))
@milesziemer milesziemer requested a review from a team as a code owner September 19, 2022 23:39
sp();
rsp();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too bad that the names of the methods have diverged from the name of the grammar productions, but that's not related to this change.

@milesziemer milesziemer merged commit 0827159 into smithy-lang:main Sep 20, 2022
@milesziemer milesziemer deleted the fix-apply-parsing branch September 20, 2022 18:09
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