Skip to content

Fix apply statement parsing and ABNF#1414

Merged
milesziemer merged 1 commit intosmithy-lang:mainfrom
milesziemer:fix-apply-parsing
Sep 20, 2022
Merged

Fix apply statement parsing and ABNF#1414
milesziemer merged 1 commit intosmithy-lang:mainfrom
milesziemer:fix-apply-parsing

Conversation

@milesziemer
Copy link
Copy Markdown
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
expect('l');
expect('y');
sp();
rsp();
Copy link
Copy Markdown
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