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

Indent type specifications correctly #2

Open
hcs42 opened this issue May 7, 2013 · 1 comment
Open

Indent type specifications correctly #2

hcs42 opened this issue May 7, 2013 · 1 comment

Comments

@hcs42
Copy link
Member

hcs42 commented May 7, 2013

The indentation is unaware of -type, -spec and -opaque type specifications.

Emacs handles them nicely, so the same behavior should be implemented here.

@hcs42
Copy link
Member Author

hcs42 commented Dec 5, 2013

It is not always obvious what "correct" means.

Examples of Emacs indentations:

-spec f() ->
               a() 
                   | b()
                   | c().

-spec long_function_name() ->
                                a() 
                                    | b()
                                    | c().

-spec long_function_name(parameter_type()) ->
                                a() 
                                    | b()
                                    | c().

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

No branches or pull requests

1 participant