Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fun result type not indented in specs #13

Closed
fishcakez opened this issue Jul 15, 2013 · 2 comments
Closed

Fun result type not indented in specs #13

fishcakez opened this issue Jul 15, 2013 · 2 comments

Comments

@fishcakez
Copy link
Contributor

Example:

-spec eval(fun((Arg)->
Result), Arg) -> Result when Arg :: term(), Result :: term().
eval(Fun, Arg) ->
    Fun(Arg).
@hcs42
Copy link
Member

hcs42 commented Jul 18, 2013

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
Copy link
Contributor Author

Ok :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants