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

Incorrect parsing of the contents of triple-quoted strings #89

Closed
jfmengels opened this issue Oct 8, 2020 · 0 comments · Fixed by #95
Closed

Incorrect parsing of the contents of triple-quoted strings #89

jfmengels opened this issue Oct 8, 2020 · 0 comments · Fixed by #95
Labels

Comments

@jfmengels
Copy link
Collaborator

When encountering double backslashes (\\) in triple quotes, the order of characters is wrong.

module A exposing (..)
_ = """\\{"""
_ = """\\{\\}"""
_ = """\\}\\{"""
_ = """\\[\\]"""
_ = """\\(\\)"""
_ = """\\a\\b"""
_ = """\\a-blablabla-\\b"""

For instance \\{\\} becomes \\}\\{

To play with those interactively, I made an Ellie. It's in Elm code, so there is a lot of escaping unfortunately https://ellie-app.com/bbmqddVmJzka1 (see line ~65)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant