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

ABNF: Fix empty lines inside the definition of rules #1251

Merged
merged 2 commits into from Dec 5, 2021

Conversation

basile-henry
Copy link
Collaborator

From my reading of ABNF's syntax: https://datatracker.ietf.org/doc/html/rfc5234#section-4
Some whitespace is required on the following line for a rule to continue.

Nadrieril/dhall-rust uses the duesee/abnf crate which seems fairly
strict on this point, which means that the current abnf cannot be
parsed.

It looks like it's not the first time that these significant trailing
whitespaces need to be re-added:
2f38c44

I assume they get removed automatically by editors therefore I am opting
for a solution with no trailing whitespace but keeping the same amount
of vertical space between rule options.

From my reading of ABNF's syntax: https://datatracker.ietf.org/doc/html/rfc5234#section-4
Some whitespace is required on the following line for a rule to continue.

Nadrieril/dhall-rust uses the duesee/abnf crate which seems fairly
strict on this point, which means that the current abnf cannot be
parsed.

It looks like it's not the first time that these significant trailing
whitespaces need to be re-added:
2f38c44

I assume they get removed automatically by editors therefore I am opting
for a solution with no trailing whitespace but keeping the same amount
of vertical space between rule options.
@basile-henry basile-henry merged commit 2f3c8be into master Dec 5, 2021
@basile-henry basile-henry deleted the basile/fix-abnf-whitespace branch December 5, 2021 21:56
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.

None yet

2 participants