Skip to content

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

Merged
basile-henry merged 2 commits intomasterfrom
basile/fix-abnf-whitespace
Dec 5, 2021
Merged

ABNF: Fix empty lines inside the definition of rules#1251
basile-henry merged 2 commits intomasterfrom
basile/fix-abnf-whitespace

Conversation

@basile-henry
Copy link
Copy Markdown
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.

2 participants