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

Continued expressions commited to multiple lines #9

Closed
fredrikekre opened this issue Jun 13, 2024 · 1 comment
Closed

Continued expressions commited to multiple lines #9

fredrikekre opened this issue Jun 13, 2024 · 1 comment
Milestone

Comments

@fredrikekre
Copy link
Owner

I am not sure yet whether Runic will reformat to stay within a certain line width (gofmt does not) but if an expression have already commited to multiple lines, for example

some_function_name(argument1,
    argument2)

This should insert a newline after ( and before ):

some_function_name(
    argument1,
    argument2,
)

and, where applicable, add a trailing , to the last item.

@fredrikekre
Copy link
Owner Author

Also applies for arrays, tuples, function definitions and curly.

@fredrikekre fredrikekre added this to the 1.0.0 milestone Jun 13, 2024
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