Skip to content

Require EOF when parsing RBS types#559

Merged
Morriar merged 2 commits intomainfrom
at-require-eof
Feb 19, 2026
Merged

Require EOF when parsing RBS types#559
Morriar merged 2 commits intomainfrom
at-require-eof

Conversation

@Morriar
Copy link
Copy Markdown
Contributor

@Morriar Morriar commented Feb 9, 2026

We should always require an EOF at the end of the types we parse to avoid parsing incomplete string that contain an error:

  • parse_type("1.0") we'll parse an integer for "1" then fail but still end on an acceptable state if we don't require a EOF
  • parse_type("'str'") we'll parse nothing and end on an acceptable state if we don't require a EOF

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar requested a review from a team as a code owner February 9, 2026 21:31
@Morriar Morriar merged commit 95e520d into main Feb 19, 2026
8 checks passed
@Morriar Morriar deleted the at-require-eof branch February 19, 2026 14:15
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