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

No uncollapse simple expressions, collapse_simple_statement only when already collapsed #863

Open
d-enk opened this issue Jun 3, 2024 · 0 comments

Comments

@d-enk
Copy link

d-enk commented Jun 3, 2024

I would like simple expressions to can collapse, but complex not

This has been annoying for a very long time
but I was too lazy to write issue)

that is, if there is already a newline no need to collapse

like gofmt behavior

next code can't be changed (additional option may be required)

if ok then return end

if ok then
  return
end

function func() return end

function func()
  return
end

I would also personally like
so that there no new line instead ; between commands

some1(); some2(); break

but maybe I'm the only one
so for now without a separate issue

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

1 participant