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

Add tests for escaped backslashes in multiline strings #2

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

goodmami
Copy link
Contributor

This is the test from toml-lang/toml#585 (comment) :)

I also added an error test to show that the whitespace following the backslash cannot itself be escaped. This test might be uninteresting though, because the error in the end is that the combination of \ with a space is just an invalid escape.

The line-ending backslash only works if there are no non-whitespace
characters after it until the end of the line. Escaped whitespace
counts as non-whitespace.
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