AdRoll / rebar3_format

Erlang Formatter for Rebar3
https://tech.nextroll.com/blog/dev/2020/02/25/erlang-rebar3-format.html
MIT License
108 stars 21 forks source link

Add support for OTP 27 #359

Open elbrujohalcon opened 7 months ago

elbrujohalcon commented 7 months ago

We need to check what changed in erl_syntax and epp_dodger, as usual, but we also need to add support for documentation attributes, sigils and triple-quoted-strings. Plus, maybe is enabled by default.

For reference: https://erlang.org/download/OTP-27.0-rc1.README

elbrujohalcon commented 7 months ago

We can also check if it's worth adding something to support the new shell formatting functionality offered by OTP27:

[!TIP]

  • Added support for adding a custom code formatter that formats your multi-line shell commands in your preferred formatting on submission. See shell:format_shell_func/ and shell:erl_pp_format_func/1.

    Own Id: OTP-18848 Related Id(s): PR-7847

elbrujohalcon commented 7 months ago

[!NOTE]

  • The epp_dodger module can now handle the maybe and else keywords.

    Own Id: OTP-18608 Related Id(s): GH-7266, PR-7267

paulo-ferraz-oliveira commented 4 months ago

I think OTP 27 (25?) breaks format for -else. in macros, probably because else is also part of maybe (?)