Skip to content

zig fmt ignores single argument trailing commas in @builtins() #6171

@fengb

Description

@fengb

Before:

@panic(foo,);
panic(foo,);
@panic(foo, bar,);

After:

@panic(foo);
panic(
    foo,
);
@panic(
    foo,
    bar,
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.frontendTokenization, parsing, AstGen, Sema, and Liveness.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions