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

Keyword list as sole argument in a pipe in a map: syntax error after formatting #60

Closed
mxgrn opened this issue Jul 22, 2023 · 2 comments · Fixed by #61
Closed

Keyword list as sole argument in a pipe in a map: syntax error after formatting #60

mxgrn opened this issue Jul 22, 2023 · 2 comments · Fixed by #61

Comments

@mxgrn
Copy link

mxgrn commented Jul 22, 2023

Versions

  • Elixir: 1.15.0
  • Styler: 0.8.1

Example Input

    %{
      a: Foo.bar(baz: true) |> Quux.quux()
    }

Current output

    %{
      a: baz: true |> Foo.bar() |> Quux.quux()
    }

Expected output

    %{
      a: [baz: true] |> Foo.bar() |> Quux.quux()
    }
@novaugust
Copy link
Contributor

thanks for the issue! should be solved in the next release.
funny that it only happens depending on the parent node - Foo.bar(baz: true) |> Quux.quux() by itself worked just fine :)

@novaugust
Copy link
Contributor

0.8.2 is out, sorry for spacing to ship until now =)

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 a pull request may close this issue.

2 participants