Skip to content

Conversation

@eureka-cpu
Copy link
Contributor

@eureka-cpu eureka-cpu commented Jun 8, 2022

Associated to issue #1888

This should give us the methods we need to handle indentation in the new formatter.

This also adds a utils folder that will house the associated functions for organizational purposes.

Copy link
Member

@kayagokalp kayagokalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me, i.e I think we have everything we need for unblocking the implementation of the logic for say enums here.

So I think this will give us a strong base (if not the whole thing) for indentation handling. I will defer to @mitchmindtree or @JoshuaBatty for the final approval.

Copy link
Member

@JoshuaBatty JoshuaBatty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eureka-cpu eureka-cpu merged commit b2b46e9 into master Jun 9, 2022
@eureka-cpu eureka-cpu deleted the eureka-cpu/indent-style branch June 9, 2022 00:22
@eureka-cpu
Copy link
Contributor Author

eureka-cpu commented Jun 9, 2022

this looks good to me, i.e I think we have everything we need for unblocking the implementation of the logic for say enums here.

So I think this will give us a strong base (if not the whole thing) for indentation handling. I will defer to @mitchmindtree or @JoshuaBatty for the final approval.

@kayagokalp does this close #1888 ?

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

sway-fmt-v2 should be able to handle indentations correctly.

4 participants