vim-erlang / vim-erlang-runtime

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

types would love to be indented too #25

Closed dch closed 10 years ago

dch commented 10 years ago

Looking at http://erlang.org/doc/reference_manual/typespec.html#id77354 types are also indented:

-type: foo :: any()                 %% The top type, the set of all Erlang
            | none()                %% The bottom type, contains no terms
            | pid()
            | port()
            | reference()
            | []                    %% nil
            | float()

which doesn't line up completely correctly but I hope you get the idea!

but vim-erlang-runtime doesn't do that, instead providing:

-type: foo :: any()                 %% The top type, the set of all Erlang
| none()                %% The bottom type, contains no terms
| pid()
| port()
| reference()
| []                    %% nil
| float()
hcs42 commented 10 years ago

Duplicate of #2.