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

Indentation of nested map arguments without leading bracket #128

Open
djlindstr opened this issue Aug 28, 2018 · 0 comments
Open

Indentation of nested map arguments without leading bracket #128

djlindstr opened this issue Aug 28, 2018 · 0 comments

Comments

@djlindstr
Copy link
Collaborator

djlindstr commented Aug 28, 2018

Calling a method which takes a map argument indents correctly with a leading parenthesis:

func (
    a: 'xxx',
    b: [
        indentMe: 123,
    ],
    c: 567
)

If the brackets are left out, the inner map is not indented correctly:

func a: 'xxx',
    b: [
    indentMe: 123,
],
    c: 567

Expected:

func a: 'xxx',
    b: [
        indentMe: 123,
    ],
    c: 567

Edit: leading square bracket is a syntax error. The example still applies with or without regular brackets though.

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

1 participant