Description
Erlang/OTP 29 introduces native records (EEP-79) using the #name{...} syntax: https://www.erlang.org/doc/system/ref_man_native_records.html
Currently, erlfmt fails to parse these files and throws syntax errors when encountering them.
Code Example
-record #user{
id :: user_id:t(),
account_id :: account_id:t(),
name :: binary(),
email :: email:t(),
password_hash :: user_password_hash:t(),
status :: status(),
created_at :: integer()
}.
Error Message
src/user.erl:20:19: syntax error before: '::'
Could you please add support for parsing and formatting OTP 29 native records
Description
Erlang/OTP 29 introduces native records (EEP-79) using the #name{...} syntax: https://www.erlang.org/doc/system/ref_man_native_records.html
Currently, erlfmt fails to parse these files and throws syntax errors when encountering them.
Code Example
Error Message
src/user.erl:20:19: syntax error before: '::'
Could you please add support for parsing and formatting OTP 29 native records