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

Indentation support for function chaining #264

Open
digital-carver opened this issue Jun 16, 2021 · 1 comment
Open

Indentation support for function chaining #264

digital-carver opened this issue Jun 16, 2021 · 1 comment

Comments

@digital-carver
Copy link

Currently, function chaining gets no indent:

myvariable = readline(infile) |>
collect |>
a -> reshape(a, (9, 9)) |>
permutedims

Something like what's below would be preferable, as with function arguments and the other examples mentioned in the docs.

myvariable = readline(infile) |>
              collect |>
              a -> reshape(a, (9, 9)) |>
              permutedims
@TerseTears
Copy link

I think the issue is with every infix operator, whereby breaking the line after the operator, simply doesn't indent the line that follows. Not sure if it's the proper style, but it is what I'm used to as well.

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