Skip to content

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

Description

@d-enk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions