rebar3_format icon indicating copy to clipboard operation
rebar3_format copied to clipboard

`-else.` gets formatted to `- else .` in otp25

Open tak30 opened this issue 2 years ago • 0 comments

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

tak30 avatar Jan 24 '23 08:01 tak30