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
^