Open tak30 opened 1 year ago
Describe the bug -else. gets formatted to - else .
-else.
- else .
In otp25. In otp24 it gets formatted to -else. To Reproduce
otp25
otp24
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.
DEBUG=1
Additional context It is probably related to else being a keyword in otp25 due to the maybe_expr
else
maybe_expr
Describe the bug
-else.
gets formatted to- else .
In
otp25
. Inotp24
it gets formatted to-else.
To ReproduceFomat the following code with
otp25
: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 inotp25
due to themaybe_expr