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

Comments following inherit are not indented correctly #126

Closed
iFreilicht opened this issue Jun 3, 2023 · 1 comment
Closed

Comments following inherit are not indented correctly #126

iFreilicht opened this issue Jun 3, 2023 · 1 comment

Comments

@iFreilicht
Copy link

Description

I assume this is related to #32 and so would be fixed by #117, but just in case it's not, I'll put this here:

Small example input

(How nixpkgs-fmt formats it)

{ pkgs }:
with pkgs; {
  inherit
    # This comment should be indented, but isn't
    git# This comment is fine

    # This comment is also fine
    nix;
}

Expected output

{ pkgs }:
with pkgs; {
  inherit
    # This comment should be indented, but isn't
    git # This comment is fine

    # This comment is also fine
    nix;
}

Actual output

{ pkgs }:
with pkgs; {
  inherit
  # This comment should be indented, but isn't
    git # This comment is fine

    # This comment is also fine
    nix;
}

@piegamesde
Copy link
Member

#118 was merged which contained #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants