-
-
Notifications
You must be signed in to change notification settings - Fork 36
Fix reserved-body
to use quoted
rather than literal
#415
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
Conversation
Actually, I think this might be wrong. The idea was that the contents of
Note that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
My comment on this in the original PR still stands: #374 (comment) |
If one unreserved a sigil, e.g. The |
@aphillips I think we're trying to do two different things here. When #374 was merged as b3b9feb on 24 April, the relevant spec ended up with: message-format-wg/spec/message.abnf Line 29 in b3b9feb
message-format-wg/spec/message.abnf Line 41 in b3b9feb
I'm trying to fix an oversight that was introduced in b042c4a merging #364 on 5 June, which should have included the changes of this PR. As a result of that PR, we ended up with: message-format-wg/spec/message.abnf Line 15 in b042c4a
message-format-wg/spec/message.abnf Line 32 in b042c4a
message-format-wg/spec/message.abnf Line 47 in b042c4a
Notice how If we would like to reconsider the actual makeup of |
This was missed in #364, which was introduced before but merged after #374. Previously included in #414.
reserved-body
needs to allow forquoted
values (which were namedliteral
at the time of its writing) to support expressions likeas the
{}
within the|
quotes does not need to be escaped.As is, the ABNF is a bit broken for
reserved-body
as there are characters that are valid as eitherreserved-char
orliteral
.