Skip to content

Space between unary prefix operator and operand is not removed #281

Description

@eschnett

The code below is the result of formatting several lines where x is prefixed by a sequence of unary operators (+ and \star). In the input, there was no white space between the operators. JuliaFormatter seems to misinterpret the unary operators as binary operators.

            ++ + x == 0
            ++ ++ x == 0
            ⋆⋆x == 0
            ⋆⋆  x == 0
            ⋆⋆  x == 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority 2 — see contributing docsgood first issueGood for newcomers. Do NOT use LLMs!

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions