Skip to content

feat: support elastic tab stops in formatter #1684

@DavePearce

Description

@DavePearce

Summary

The elastic tab stops algorithm is an approach for getting better "alignment" when formatting source code. See this article for reference. This algorithm is used by go fmt and the aim of this issue is to adopt something similar.

Examples

Examples from go fmt:

var (
     x = 1       // a comment
     y = f(args) // another comment
)
var (
    x      = 1
    anchor = f(args)
)
var (
	x      uint32
	anchor uint64
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    zkcIssues related to ZkC language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions