Skip to content

separate_kwargs_with_semicolon has no effect inside macro calls, including @testset #952

@dhanak

Description

@dhanak

The option separate_kwargs_with_semicolon has no effect when inside macro calls. I can see why, keyword arguments are handled differently for macros, and semicolon typically is not used to separate them.

However, in case of @testset (and possibly other macros with block arguments), the code between begin and end is normal Julia code, with regular function calls. Disabling semicolon enforcement within this block as well doesn't make sense.

I think it would be better to re-enable can_separate_args in the context when we enter such a begin...end block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions