Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes the formatting to take into account whether inherits are expanded onto multiple lines already, and if so, preserves that. This is desirable because if a user writes an inherit over multiple lines, there's most likely an intention to add more, which would become harder when formatted. An example of this is inheriting from `lib`, which usually starts out with just a single value, but usually gets more later. This would've been contracted onto a single line before this change: inherit (lib) foo ; This change conforms to the standard due to this line: > The formatter may take the input formatting into account in some cases in order to preserve multi-line syntax elements (which would otherwise have been contracted by the rules).
- Loading branch information