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

Format with Ast.render instead of zig fmt #755

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

Techatrix
Copy link
Member

We don't need to call zig fmt because we can format the code ourself with std.zig.Ast.render. This should provide a more stable experience with formatting because don't need to spawn a child process and don't depend on a zig executable for formatting.

Copy link
Member

@SuperAuguste SuperAuguste left a comment

Choose a reason for hiding this comment

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

Amazing.

@SuperAuguste SuperAuguste merged commit 662b560 into zigtools:master Nov 16, 2022
@Techatrix Techatrix deleted the fmt-with-tree-render branch November 16, 2022 22:33
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

Successfully merging this pull request may close these issues.

None yet

3 participants