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

Styler breaks ranges at the start of pipes #76

Closed
cschmatzler opened this issue Sep 15, 2023 · 2 comments
Closed

Styler breaks ranges at the start of pipes #76

cschmatzler opened this issue Sep 15, 2023 · 2 comments

Comments

@cschmatzler
Copy link

cschmatzler commented Sep 15, 2023

Versions

  • Elixir: 1.15.5-otp-26
  • Styler: 0.9.1

Example Input

start..23//step
|> Stream.drop_while(fn x -> x < hour end)

Current Behaviour

Output:

start
|> ..//(23, step)
|> Stream.drop_while(fn x -> x < hour end)

Styler

  1. moves the end of the range into the step
  2. moves the call to .. into a pipe, which is invalid syntax with
unexpected token: "." (column 10, code point U+002E)
    |
 22 |       |> ..//(23, step)
@novaugust
Copy link
Contributor

thanks for the issue! will have it fixed up in a jiffy

@novaugust
Copy link
Contributor

fix published in v0.9.3, thanks again :)

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