Fun result type not indented in specs
fishcakez opened this issue · 2 comments
fishcakez commented
Example:
-spec eval(fun((Arg)->
Result), Arg) -> Result when Arg :: term(), Result :: term().
eval(Fun, Arg) ->
Fun(Arg).hcs42 commented
Currently type specifications are not handled at all – i.e. they will be indented as if they were plain Erlang code, and the above is not correct plain Erlang code, so the parser just gives up when trying to indent the second line.
There is a ticket about making type specs work: #2.
fishcakez commented
Ok :).