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

Syntax Error when multiline strings when wrapped in parentheses #2155

Open
anagrius opened this issue Dec 10, 2020 · 1 comment
Open

Syntax Error when multiline strings when wrapped in parentheses #2155

anagrius opened this issue Dec 10, 2020 · 1 comment

Comments

@anagrius
Copy link

@anagrius anagrius commented Dec 10, 2020

Quick Summary:

Elm fails to compile with a Syntax Error when multiline strings when wrapped in parentheses in the examples below:

SSCCE

-- WORKS
y =
    case () of
        () ->
            (1, """
    """  )

-- DOES NOT WORK
y =
    case () of
        () ->
            (1, """
   """ ) -- Notice the parentheses ends before or at the same indent level of the previous cases

-- WORK
y =
    case () of
        () ->
            (1, """
""" {- -} )
  • Elm: 0.19.1
  • Operating System: Linux
@github-actions
Copy link

@github-actions github-actions bot commented Dec 10, 2020

Thanks for reporting this! To set expectations:

  • Issues are reviewed in batches, so it can take some time to get a response.
  • Ask questions a community forum. You will get an answer quicker that way!
  • If you experience something similar, open a new issue. We like duplicates.

Finally, please be patient with the core team. They are trying their best with limited resources.

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.