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

Nested struct pattern formatting could be shorter #941

Open
JonasWanke opened this issue Feb 8, 2024 · 0 comments
Open

Nested struct pattern formatting could be shorter #941

JonasWanke opened this issue Feb 8, 2024 · 0 comments
Labels
P: Compiler: Formatter Package: Candy's formatter T: Fix Type: Bug Fixes

Comments

@JonasWanke
Copy link
Member

Input

[
  colors,
  controlSequences,
  GraphicRenditions:
    [
      setForegroundColor3Or4Bit,
      setBrightForegroundColor3Or4Bit,
      setForegroundColor8Or24Bit,
      setBackgroundColor3Or4Bit,
      setBrightBackgroundColor3Or4Bit,
      setBackgroundColor8Or24Bit,
    ],
] = use "AnsiEscapeSequences"

Actual Output

[
  colors,
  controlSequences,
  GraphicRenditions:
    [
      setForegroundColor3Or4Bit,
      setBrightForegroundColor3Or4Bit,
      setForegroundColor8Or24Bit,
      setBackgroundColor3Or4Bit,
      setBrightBackgroundColor3Or4Bit,
      setBackgroundColor8Or24Bit,
    ],
] = use "AnsiEscapeSequences"

Desired Output

[
  colors,
  controlSequences,
  GraphicRenditions: [
    setForegroundColor3Or4Bit,
    setBrightForegroundColor3Or4Bit,
    setForegroundColor8Or24Bit,
    setBackgroundColor3Or4Bit,
    setBrightBackgroundColor3Or4Bit,
    setBackgroundColor8Or24Bit,
  ],
] = use "AnsiEscapeSequences"

Relevant Logs

No response

Additional Information

No response

@JonasWanke JonasWanke added T: Fix Type: Bug Fixes P: Compiler: Formatter Package: Candy's formatter labels Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: Formatter Package: Candy's formatter T: Fix Type: Bug Fixes
Projects
Status: No status
Development

No branches or pull requests

1 participant