Replies: 2 comments 1 reply
-
Oh, huh, yeah, the grammar is slightly wrong. It requires two newlines between the quotes, but the spec allows those to be the same newline. We need to add an an alternative to handle empty multiline strings properly. |
Beta Was this translation helpful? Give feedback.
1 reply
-
(btw, for things like this, Issues are more appropriate than discussions) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This 2-line multiline string is valid (and parsed as such), but it seems that per spec it shouldn't be?
(newline added explicitly as

for easier visual comparison)The spec for quoted multiline string is:
But
multi-line-string-body
eats all escaped space within it, so our 2nd lineis part of the body up to
"""
and then there is no mandatory
newline
left to have before"""
ws-escape
eats all contiguous whitespace after it and is part of the bodyBeta Was this translation helpful? Give feedback.
All reactions