Skip to content

Feature request: support new {...} syntax alternative to begin...end #118

@andradei

Description

@andradei

fish v4.1.0 Added the new syntax to begin...end which is {...}. The lsp/formatter, however, formats {...} in a new line, which breaks the script.

Example:

Correct: this gets formatted correctly and runs as intended

false
or begin
    echo 'could be true'
end

Incorrect: the follow (correct) alternative...

false
or {
    echo 'could be true'
}

gets formatted as:

false
or
{
    echo 'could be true'
}

with { on a new line, this breaks the script with error:

Expected a command, but found end of the statement
or
  ^

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions