vim-erlang / vim-erlang-runtime

Erlang indentation and syntax for Vim
https://vim-erlang.github.io
101 stars 29 forks source link

Fun result type not indented in specs #13

Closed fishcakez closed 11 years ago

fishcakez commented 11 years ago

Example:

-spec eval(fun((Arg)->
Result), Arg) -> Result when Arg :: term(), Result :: term().
eval(Fun, Arg) ->
    Fun(Arg).
hcs42 commented 11 years ago

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 11 years ago

Ok :).