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

nix-indent-line gets confused by a comment containing "in" #62

Closed
grahamc opened this issue Jan 3, 2019 · 3 comments
Closed

nix-indent-line gets confused by a comment containing "in" #62

grahamc opened this issue Jan 3, 2019 · 3 comments

Comments

@grahamc
Copy link
Member

grahamc commented Jan 3, 2019

let
  foo = bar:
    # comment containing in 
  # dedented 
  bar;
in null

should be

let
  foo = bar:
    # comment containing in 
    # dedented 
    bar;
in null
@grahamc
Copy link
Member Author

grahamc commented Jan 5, 2019

Some addition surprising dedents:

{
  a = {
    b = true; # =off"];
  c = true;
  };

  d = {
    e = true; # =off"};
  f = true;
  };

  g = {
    # not impacted, suggesting the }; at the EOL is relevant
    h = true; # =off";
    i = true;
  };
}

@grahamc
Copy link
Member Author

grahamc commented Jan 5, 2019

Additionally:

{
  # with
    foo = "bar";
}

grahamc added a commit to grahamc/nixos-config that referenced this issue Jan 5, 2019
@grahamc
Copy link
Member Author

grahamc commented Jan 8, 2019

Fixed as of #68!

@grahamc grahamc closed this as completed Jan 8, 2019
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

1 participant