vim-erlang/vim-erlang-runtime

Fun result type not indented in specs

fishcakez opened this issue · 2 comments

Example:

-spec eval(fun((Arg)->
Result), Arg) -> Result when Arg :: term(), Result :: term().
eval(Fun, Arg) ->
    Fun(Arg).

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.

Ok :).