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

Format causes breaking change for "<>" #114

Closed
wkirschbaum opened this issue Jan 5, 2024 · 2 comments
Closed

Format causes breaking change for "<>" #114

wkirschbaum opened this issue Jan 5, 2024 · 2 comments

Comments

@wkirschbaum
Copy link

wkirschbaum commented Jan 5, 2024

Versions

  • Elixir: Elixir 1.16.0 (compiled with Erlang/OTP 26)
  • Styler: locked at 0.11.1 (styler) 8d995b3e

Example Input

"foo" <>
      ( for value <- 1..100 do
          "bar"
      end
      |> Enum.join(", "))

formats to invalid elixir:

    <>(
      "foo",
      for_result =
        for value <- 1..100 do
          "bar"
        end,
      Enum.join(for_result, ", ")
    )

error: syntax error before: '<>'

@novaugust
Copy link
Contributor

novaugust commented Jan 5, 2024

Thanks much for the report + minimal repro example =) Will release 0.11.2 with a fix later today

@novaugust
Copy link
Contributor

0.11.2 is released on hex with the fix :) cheers

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

No branches or pull requests

2 participants