rebar3_format
rebar3_format copied to clipboard
`-else.` gets formatted to `- else .` in otp25
Describe the bug
-else.
gets formatted to - else .
In otp25
. In otp24
it gets formatted to -else.
To Reproduce
Fomat the following code with otp25
:
-if(?OTP_RELEASE >= 25).
foo() ->
ok.
-else.
foo() ->
ok.
-endif.
Expected behavior
It gets formatted to -else.
Rebar3 Log
Run rebar3 with DEBUG=1
and paste its output here.
Additional context
It is probably related to else
being a keyword in otp25
due to the maybe_expr